react-better-image
A progressive image component with a better user experience.
Install
npm install --save react-better-image
Usage
import React Component from 'react' import BetterImage from 'react-better-image' { return <BetterImage = = = = = = = // , , = = /> }
More
if you want to understand the implementation principle of this component. And the settings of root, rootMargin and other parameters.
please refer to --> intersection-observer.
License
MIT © bobi