Quantcast
Channel: Displaying images from a URL in React - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Priyanka Panjabi for Displaying images from a URL in React

Try it like this :<img src={avatarURL.replace(/['"]+/g, '')}/> // to remove extra double quotes

View Article



Displaying images from a URL in React

I'm trying to load user avatars from a S3 bucket where on making a GET request to /uploads/resume/{user_uid} a URL is returned with the image. This is how my request looks likeconst getAvatar = async()...

View Article
Browsing all 2 articles
Browse latest View live


Latest Images