1import React from "react";
2import LazyLoad from "react-lazyload";
3
4export default function App() {
5 return (
6 <div className="list">
7 <LazyLoad height={250} once>
8 <img src="https://placedog.net/500/280" alt="dog" />
9</LazyLoad>
10 <LazyLoad height={250} once>
11 <img src="https://placedog.net/500/300" alt="dog" />
12 </LazyLoad>
13 <LazyLoad height={250} offset={150}>
14 <img src="https://placedog.net/500/300" alt="happy dog" />
15 </LazyLoad>
16 </div>
17 );
18}