I'm trying to create a replacement for the image if not found and below is what I have so far. This is for a React project, so React answers only.
Any help will be great.
<img src={`${news.urlToImage.src ? news.urlToImage.src : "../assets/default_logo.png" }`}
alt="images"/>