Hello,
I have a React app and I'm fetching the Blogger API using axios. In the response, there is a content property. It contains HTML, but in string like this:
{
"content": "<div> some content </div>"
}
So I'm using react-html-parser package to convert it to JSX.
The problem is, I want to take the first <img/> from this content JSX and display only it - hide other elements.
I tried set display: none for * and display: block for img, but then nothing was visible - including image.
Thanks in advance