Skip to content
Advertisement

Image is not uploading in React. instead alt tag is showing

In my project i have make a main.jsx in which i provide image link and description in array of 3 item. then i take those to another component name Photo through Photowall.jsx . But image is showing of alt. not the imgaeLink

JavaScript

my main.jsx –

JavaScript

I have tried through url and through statis too but it doesnot work.

Photowall.jsx

JavaScript

and photo.jsx –

JavaScript

please checout this repo – https://github.com/mohitRana-04/Photowall

Advertisement

Answer

Try copy image address and then paste it in the respective place .

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement