A React wrapper for Twemoji
npm install react-twemoji``shell`
yarn add react-twemoji
or, if you use npm,
`shell`
npm install react-twemoji
Simply use it to wrap your emotional content. Set the options prop to pass options to twemoji.parse.
`jsx
import Twemoji from 'react-twemoji';
😂😉
`
It outputs the following HTML to DOM,
`html`


| Name | Type | Default | Description| bar
|:---- |:---- |:---- |:----|
| options | object | undefined | twemoji.parse options. |noWrapper
| | boolean | false | When it is true, Twemoji will not render a wrapping element (with tag) to contain its children. Note that since twemoji.parse needs a DOM element reference, any direct pure text child of Twemoji is not parsed when noWrapper is true. E.g. foo in is not parsed. |tag
| | string | div | The tag of the wrapping element. This option is ignored when noWrapper is true. |
`sh`
yarn run example
then open http://localhost:8080/
`sh`
yarn run lint
`sh`
yarn run test
`sh``
yarn run build