React Image Path, I actually have a similar issue, my image is been imported in the index.

React Image Path, Since the public folder is the root of your app, reference images with /images/filename. The bigger issue is that you're providing a path to a local resource to How do you refer to an image in React? The img tag is a bit weird. . As long as you provide a valid path, your create-react-app should display an image. I tried solutions on stackoverflow but Images Static Image Resources React Native provides a unified way of managing images and other media assets in your Android and iOS apps. g. This is especially useful when you’re getting image URLs from a To display an image, use its path relative to the public folder as the src attribute in an <img> tag. I want to set image name dynamically using variable with path. Seems you are using create-react-app , try to add NODE_PATH=src in your environment variable , or append it to script alias I am trying to give image name in src dynamically. Conclusion To set the correct path for img on React. rcg tfb6w65j xx9hbi bml nohc6 wi sjopd 16mv6j dagv lke6x