Q
Q
qxie2018-08-19 16:34:57
React
qxie, 2018-08-19 16:34:57

How to import an Image when using React via CDN?

Don't ask me why I'm using React via CDN, just help solve the problem. import img from './img/img.jpg'; - does not work...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Coder321, 2018-08-20
@Coder321

Beth babel and won't work. As an option, configure the server to issue statics and take a picture via http

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question