0

I want to display an image from a URL in React. For example, I want this image in tsx file

http://d1cs08zudd3ykv.cloudfront.net/dev/img/arrow-up.svg to be displayed in reactJS. When I am trying to use requires not working but require is working with the local path. Is it possible to do or Is there any other way to do it? And how to do it?

2
  • 1
    Please provide a bit more detail. What have you tried so far? What code do you use to try and display the image? Commented Feb 1, 2021 at 8:03
  • There is question with almost the same name stackoverflow.com/questions/51184136/… Commented Feb 1, 2021 at 8:46

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.