This can be done directly without using the path to the public folder. You can do it like
<img src="/images/image-name" alt=""/> This happens because we do not use App.js in the browser,App.js in the browser only index.html Since index.html is executed, in the browser itself and the path to images is already in the public folder containing index.htmlindex.html file