Output Emojis ð¥ with ReasonReact
Iâm using ReasonReact on top of ReasonML and Iâm trying to output some emojis like this:
(ReasonReact.string("Fire ð¥"))
but the output is:
Fire ðÂÂÂ¥
The solution I found is to use the funky looking âJs string" instead of double quotes. The Js string in ReasonML has curlies and pipes with a js in the middle {js| Fire ð¥ |js}
In context it looks like this:
(ReasonReact.string({js| Fire ð¥ |js}))
And now I can see some fire:
Fire ð¥
Tweet