Skip to content

Commit 5e8a940

Browse files
committed
react-viewport-detect
edit readme.md
1 parent 95142f2 commit 5e8a940

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
This is a React hook easy to use. This hook allow you to know if an element is present in the current viewport.
33
It returns you a boolean. The boolean will be set at true when the element appear on the viewport but only once.
44

5+
[![NPM Version](https://badgen.net/npm/v/react-viewport-detect)](https://www.npmjs.com/package/react-mui-snackbar)
6+
![Installed size](https://badgen.net/packagephobia/install/react-viewport-detect)
57

68
## Installation
79
```bash
8-
npm i @react/visible
10+
npm i react-viewport-detect
911
```
1012

1113
## Usage

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@react/in-viewport",
2+
"name": "react-viewport-detect",
33
"version": "1.0.0",
44
"private": false,
55
"description": "This is a react hook easy to use. This hook allow you to know if an element is present in the current viewport. It returns you a boolean. The boolean will be set at true when the element appear on the viewport but only once.",

0 commit comments

Comments
 (0)