How to render emojis with JavaScript
Emmanuel Gautier
Posted on March 5, 2021
For the content of your posts, emojis add some fun to your pages. This short post explains how to make that possible in JavaScript.
The most conveniant is to use directly the right emoji Unicode. Here a JSX example :
<span>{'\u{1F680}'}</span>
You can also use the node-emoji package to help you manipulate them.
If you want to know what unicode emoji to add, you can find this page useful : Full Emoji List
đź’– đź’Ş đź™… đźš©
Emmanuel Gautier
Posted on March 5, 2021
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
programming How to visualize bar chart with react-chart-2, showing label on the bar
November 28, 2024
webdev 🚀 Introducing Folio-Motion: A Stunning Developer Portfolio Template! 🎨
November 28, 2024