I'm looking to integrate emojis into my webpage within a React chat app. The idea is to provide users with a list of emojis to choose from. How can I use codes like '1F683' to display emojis on the page, particularly with support for Chrome?
I have successfully utilized CSS to display emojis.
<div className="smiley"></div>
.smiley:after {
content: "\01F683";
}
Another method I've explored is creating a list of images and mapping them to their corresponding codes to display an img element for each emoji.
Are there any other approaches, and which would be considered the best way to achieve this?