Skip to content

Commit 29ce104

Browse files
committed
Bump to version 1.2.1
1 parent 348c553 commit 29ce104

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ const Decorated = WithinViewport()(Header)
2020

2121
Now when you use `<Decorated />` it will pass the boolean property `inViewport` to `Header`.
2222

23-
You can change the property name by passing a transformation function, example:
23+
The passed prop is transformed by a function.
24+
You can use it to, for example, changing the prop name:
2425

2526
```js
2627
const Decorated = WithinViewport(

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-within-viewport",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "Debounced React high order component to flag when it's container is inside the viewport.",
55
"main": "dist/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)