1
Good morning. I’m getting a reply received by a API in my application React, however, such a response is a array containing string’s with elements html:
0
"<p>This Emmy winning series is a comic look at the assorted humiliations and rare triumphs of a group of girls in their 20s.</p>"
1
"<p><b>Good Girls</b> follows three \"good girl\" suburban wives and mothers who suddenly find themselves in desperate circumstances and decide to stop playing it safe, and risk everything to take their power back.</p>"
2
"<p>The city of Townsville may be a beautiful, bustling metropolis, but don't be fooled! There's evil afoot! And only three things can keep the bad guys at bay: Blossom, Bubbles and Buttercup, three super-powered little girls, known to their fans (and villains everywhere) as <b>The Powerpuff Girls</b>. Juggling school, bedtimes, and beating up giant monsters may be daunting, but together the Powerpuff Girls are up to the task. Battling a who's who of evil, they show what it really means to \"fight..."
3
"<p>Imagine a night in with four girls. Now imagine doing that for four years. In a building full of girls that is a Girl's Hostel. Live the Dushmani, the Dosti, the Pyaar, the Bhasad.</p>"
If I use the method map to write such texts on my screen, the elements will also appear, so I thought to use the wanted innerHTML, but I’m on JSX. What I have to do to solve this?
NOTE: I have tried using the dangerouslySetInnerHTML but it didn’t work.
I tried to use the React-Inner-html and gave more or less right, the texts appear on the screen, but it seems that they stay in a loading looping.
– Thales Maia