79613412

Date: 2025-05-09 02:36:48
Score: 1
Natty:
Report link

You can try the src folder as well

Your best options would be placing the image in the components folder!

as mentioned in a previous answer

here's a quick summary of the previous answer:

Adding images in the public folder and the src folder both are acceptable methods, however, importing images into your component has the benefit that your assets will be handled by the build system, and will receive hashes which improves caching/performance. You'll also have the added benefit that it will throw an error if the file is moved/renamed/deleted.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mohamed Youssef Zehani