File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ viewport.
99
1010## Installation
1111
12- ` npm install @zeusdeux/ use-is-in-viewport `
12+ ` npm install use-is-in-viewport `
1313
1414This hook declares ` react ` and ` react-dom ` as _ peer dependencies_ . While it does not depend on
1515` react-dom ` itself, hooks can misbehave if the renderer and react version don't match up. Given that
@@ -29,7 +29,7 @@ As soon as at least 1px of the child element is visible in the parent document v
2929``` jsx
3030import React from ' react'
3131import ReactDOM from ' react-dom'
32- import useIsInViewport from ' @zeusdeux/ use-is-in-viewport
32+ import useIsInViewport from ' use-is-in-viewport
3333
3434export default function OnlyChildWithNullViewport() {
3535 const [isInViewport, childElToWatch] = useIsInViewport()
Original file line number Diff line number Diff line change 5555 " git add"
5656 ]
5757 },
58- "name" : " @zeusdeux/ use-is-in-viewport" ,
58+ "name" : " use-is-in-viewport" ,
5959 "description" : " A react hook to use the IntersectionObserver declaratively in your React app." ,
6060 "version" : " 0.0.1" ,
6161 "main" : " built/es5-cjs/src/index.js" ,
6666 "keywords" : [
6767 " react" ,
6868 " hook" ,
69- " intersection observer"
69+ " intersection observer" ,
70+ " viewport"
7071 ],
7172 "author" : " Mudit Ameta <zeusdeux@gmail.com>" ,
7273 "license" : " MIT" ,
You can’t perform that action at this time.
0 commit comments