Skip to content

Latest commit

 

History

101 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Lazy Viewport

PRs Welcome npm version Bundlephobia Bundlephobia

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

  • 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.
example code
and then if you open the dev tools, the file will be loaded based on viewport example code

Contribute & Help

  • Fork and send Pull Requests are welcome
  • Submit an issues
  • A new feature requests

License

This library is MIT licensed

About

⚛️ Load your react component based on viewport browser

Topics

Resources

Stars

26 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages