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.
If you're doing HTML entities like that you have to use the dangerouslySetInnerHTML
attribute like so:
<span dangerouslySetInnerHTML={{ "__html": "©" }} />