react-lazy-viewport
v1.0.3
Published
Load your component based on viewport.
Downloads
63
Readme
React Lazy Viewport
Load your React Component based on viewport, this library using Intersection Observer if your app targeting to not modern browser please adding this Polyfill.
Features
- [x] Type safe
- [ ] Preload component
- [ ] SSR Support
Instalation
$ yarn add react-lazy-viewport
$ npm i react-lazy-viewport
Demo
We assume we have some code like this. and then if you open the dev tools, the file will be loaded based on viewport
Contribute & Help
- Fork and send Pull Requests are welcome
- Submit an issues
- A new feature requests
License
This library is MIT licensed