#How to pass an image as prop in react/typescript to another component

7 messages · Page 1 of 1 (latest)

upbeat grove
#

what import internet from "./assets/internet.svg" is very much depends upon your tooling

#

importing an svg isn't a standard javascript feature - its something that is commonly added on by a webpack plugin or something similar

#

so its not easy to say what its type is based upon the information you have provided

#

it could be anything from a string path to the resource to a react component with props of its own

upbeat grove
#

try re-reading what I said

#

you need to provide more context

#

what tools are you using