We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 348c553 commit 29ce104Copy full SHA for 29ce104
README.md
@@ -20,7 +20,8 @@ const Decorated = WithinViewport()(Header)
20
21
Now when you use `<Decorated />` it will pass the boolean property `inViewport` to `Header`.
22
23
-You can change the property name by passing a transformation function, example:
+The passed prop is transformed by a function.
24
+You can use it to, for example, changing the prop name:
25
26
```js
27
const Decorated = WithinViewport(
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "react-within-viewport",
3
- "version": "1.2.0",
+ "version": "1.2.1",
4
"description": "Debounced React high order component to flag when it's container is inside the viewport.",
5
"main": "dist/index.js",
6
"scripts": {
0 commit comments