S
S
Sergey2021-01-21 15:49:12
React
Sergey, 2021-01-21 15:49:12

How to pass import src as a parameter?

Hello. There is a parent component that renders child components in the map. The parent must pass the src of the image that will be rendered in each child component. Tell me where can I import pictures and how to pass src through a parameter? I use create-react-pack and webpack respectively.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question