How to save images for React application

Viewed 20785

I have a react application (generated withcreate-react-app so with webpack) that uses a JSON file to retrieve the text content and image URL or relative path. What's the best way to save these images provided that the content in the JSON might change over time:

  1. Import all images mentioned in the JSON in the project and save them in the src folder.
  2. Save the images in other services like S3 and then quote the URL in the JSON file.
  3. Save the images in the public folder.
1 Answers
Related