react-twemoji
A simple React wrapper for Twemoji. It calls twemoji.parse() to convert emoji characters to Twemoji images.
Install
or, if you use npm,
Usage
Simply use it to wrap your emotional content. Set options
prop to pass options to twemoji.parse
.
It outputs following HTML to DOM,
Props
Name | Type | Default | Description |
---|---|---|---|
options |
Object |
{} |
twemoji.parse options |
noWrapper |
Boolean |
false |
When it is true , Twemoji will not render a wrapping div to contain children |
Run example
then open http://localhost:8080/