Create-react-app: ERROR calling Images from public folder

Created on 4 Jan 2018  路  6Comments  路  Source: facebook/create-react-app

I want to know how to acess the public folder inside react to use images from map.

Check out the project structure:

I have pass the values from src to public, it's now inside public folder

This is my process to get URL to concat URL file:

<img src={"./category_images/".concat(categorie.file_path)} alt="" class="img-responsive" />

I'm getting Failed to load resource: the server responded with a status of 404 (Not Found)

question low (needs more information)

All 6 comments

@gaearon , @npverni @benpickles @DiegoCardoso It's a bug from React?

@gaearon can you please guide me to fix this?

You should find this guide sufficient. If not, let us know and we can re-open this.

Not Working, after follow the guide i'm getting 404 error.

@Timer @gaearon

Please follow the issue template then and provide us with a reproducable demo so we can look at what you're doing wrong; thanks!

Closing per lack of response.

Was this page helpful?
0 / 5 - 0 ratings