I’m new to reason-react. I’m trying to put a copyright symbol in a react-reason component. I've tried
<span >(ReasonReact.stringToElement("©"))</span>
but this doesn’t give me the © symbol.
Simply put: ©
if you don't put ; it will not work
If you're doing HTML entities like that you have to use the dangerouslySetInnerHTML
attribute like so:
<span dangerouslySetInnerHTML={{ "__html": "©" }} />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With