import React from "react"; import LazyLoad from "react-lazyload"; import image from "./image.jpg"; const App = () => { /** * Lazy loading images is supported out of box, no extra config is needed * `height` is set for better experience */ return ( <LazyLoad height={200}> <img src={image} /> </LazyLoad> ); }; export default App;