emoji picker based on emoji-mart (https://github.com/missive/emoji-mart/)
$ npm install --save emoji-mart-picker
Put the React component that you want to trigger the picker to open in EmojiMartPicker
's children. EmojiMartPicker
will automatically open when children is onClick
.
var emojiMartPicker = require('emoji-mart-picker');
function onChange(emoji) {
console.log(emoji);
}
ReactDOM.render(
<EmojiMartPicker onChange={onChange}>
<button>click me</button>
</EmojiMartPicker>
, document.getElementById('root'));
npm start
MIT © Canner