How to include html entity in jsx? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 3

How to include html entity in jsx?

I want html code &#8592 for left Arrow to be inserted in place of blue arrow and rendered to arrow instead of being treated like a string,I found some answers on stackoverflow but really didn't understand what was actually happening neither it seemed to solve my problem , function Url_Component(){ return (<React.Fragment><span id="span1">Add Url</span><span id="span2">Choose Image</span><span className="arrow" id="span3">⬅️</span></React.Fragment>) }

1st Aug 2020, 11:19 PM
Abhay
Abhay - avatar
1 Antwort
+ 3
Kode Krasher thks a lot for figuring it out ,those stackoverflow answers even confused me more and I couldn't pay attention to such a small mistake
2nd Aug 2020, 6:45 AM
Abhay
Abhay - avatar