Where to Store Images in React App | Upbeat Code

PHOTO EMBED

Thu May 05 2022 07:10:11 GMT+0000 (Coordinated Universal Time)

Saved by @Jude∗ #jsx

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;
content_copyCOPY

https://www.upbeatcode.com/react/where-to-store-images-in-react-app/