Hello everyone! I am working on a react project and can’t seem to get my src attribute in an img html tag to work correctly for me. Below is a screenshot of the code, and at the left you can see the file structure. The file I am currently in is “profile.js”, located in the components/pages directory. I am trying to get the .png file from frontend/img, but it isn’t working. All html is positioned inside a JSX return statement in an arrow function component.
Any ideas? Am I missing something?
I would suggest you ask this in amore advanced section. You say your react project? If this for a step or project somewhere else in freecodecamp maybe there would be better. Someone might be able to help in this question.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.