How to render emojis with JavaScript

Emmanuel Gautier / February 28, 2021

1 min read

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

Consulting

If you're seeking solutions to a problem or need expert advice, I'm here to help! Don't hesitate to book a call with me for a consulting session. Let's discuss your situation and find the best solution together.

Share this post
Follow the RSS feed

Subscribe to the newsletter

Get the latest news about tech new articles and projects.