React757 / react757.github.io

Making react "news site" with (Custom news articles filtered by team of Numbers )
https://react757.github.io
MIT License
0 stars 5 forks source link

adding default image when image not found #2

Open Pandimadhubabu opened 4 years ago

Pandimadhubabu commented 4 years ago

< img src="foo.jpg" onerror="if (this.src != 'error.jpg') this.src = 'error.jpg';">

Pandimadhubabu commented 4 years ago

Add this has default image

https://upload.wikimedia.org/wikipedia/commons/thumb/d/da/Google_News_icon.svg/200px-Google_News_icon.svg.png

Pandimadhubabu commented 4 years ago

can we use this https://github.com/React757/web to get images ( open graph data)