Answer the question
In order to leave comments, you need to log in
How to pass an image to a component?
Good afternoon! I am using webpack. Suppose you need to pass an image to the component, now I am passing the link using require("path_to_image"), because passing a string, for example - ./../../images/img - does not work. Am I doing the right thing, or are there other, better ways?
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