A simple React wrapper for Twemoji. It calls twemoji.parse() to convert emoji characters to Twemoji images.
npm install react-twemoji
Simply use it to wrap your emotional content.
import Twemoji from 'react-twemoji';
<Twemoji>
<p>๐<span>๐</span></p>
</Twemoji>
It outputs following HTML to DOM,
<div>
<p>
<img draggable="false" class="emoji" alt="๐" src="https://twemoji.maxcdn.com/2/72x72/1f602.png">
<span>
<img draggable="false" class="emoji" alt="๐" src="https://twemoji.maxcdn.com/2/72x72/1f609.png">
</span>
</p>
</div>
npm run example
then open http://localhost:8080/
npm run lint
npm run test
npm run build