I'm working on a project where I get back a string from the backend, that contains some html. I'd now like to put this html into gatsby
:
let htmlFromBackend = `<b>Hello there</b>, partner!`
return (
<div>
{htmlFromBackend}
</div>
)
However, this prints out the html as plain text, so what I see on the screen is literally:
<b> Hello there</b>, partner!
Whereas it should be
Hello there, partner!
How can I render this as proper html?