Answer the question
In order to leave comments, you need to log in
How to use images inside a React component?
Hey!
In the component folder, there is a folder with several icons that I want to use in the component. This component is displayed on all pages of the site, so the relative path for images is not suitable, an absolute one is needed. But how to register it from the root localhost:port/? Tried in different ways, no result.
The path to the components from the root - src/features/
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question