How to use Image in React Js
Copy Below Code
View As A Text File
Show Text Only
Show API
Edit Code
If images are in public folder out of src folder then we have issue to import them ,
So how to access image from public folder in any component is a issue ?
Its solution is simple ,
<img src="assets/images/logo.png" />
We dont need to import them , just paste the exact path of public folder , react will automatically render it and will show it.