Skip to content

Commit e7ac339

Browse files
committed
Change package name to use-is-in-viewport
1 parent 9c24950 commit e7ac339

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

1414
This 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
3030
import React from 'react'
3131
import ReactDOM from 'react-dom'
32-
import useIsInViewport from '@zeusdeux/use-is-in-viewport
32+
import useIsInViewport from 'use-is-in-viewport
3333
3434
export default function OnlyChildWithNullViewport() {
3535
const [isInViewport, childElToWatch] = useIsInViewport()

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
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",
@@ -66,7 +66,8 @@
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",

0 commit comments

Comments
 (0)