In my react project when I used src="" to provide address for an img element it didn't get rendered while I use the same image address with import it worked well.
This is when I used src attribute

Why is this happens?
My working directory:
/public
index.html
/src
App.js
index.js
/components
Contact.js
/images
felix.png

{ }. like this<img src={"image path"} />