D
D
Denis786562018-03-19 02:24:42
React
Denis78656, 2018-03-19 02:24:42

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

1 answer(s)
D
Denis78656, 2018-03-19
@Denis78656

resolved

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question