Skip to content

Commit 54b85fa

Browse files
committed
Update README.md
1 parent 36da404 commit 54b85fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,16 @@ npm install react-intersection-observer --save
3636
### Polyfill for intersection-observer
3737
The component requires the [intersection-observer API](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API) to be available on the global namespace. At the moment it is included in Chrome, Firefox, Opera and Edge. Make sure to include the polyfill to support other browsers like IE and Webkit.
3838

39-
You can import the [polyfill](https://github.com/jeremenichelli/intersection-observer-polyfill) directly or use a service like [polyfill.io](https://polyfill.io/v2/docs/).
39+
You can import the [polyfill](https://yarnpkg.com/en/package/intersection-observer) directly or use a service like [polyfill.io](https://polyfill.io/v2/docs/) that can add it when needed.
4040

4141
```sh
42-
yarn add intersection-observer-polyfill
42+
yarn add intersection-observer
4343
```
4444

4545
Then import it in your app
4646

4747
```js
48-
import 'intersection-observer-polyfill'
48+
import 'intersection-observer'
4949
```
5050

5151
## Props

0 commit comments

Comments
 (0)