import React from 'react' import ReactDOM from 'react-dom' import {Picker} from '../src' class Example extends React.Component { constructor(props) { super(props) this.state = { emojiSize: 24, perLine: 9, set: 'apple', } } handleInput(e) { var { currentTarget } = e, { value } = currentTarget, key = currentTarget.getAttribute('data-key'), state = {} state[key] = parseInt(value) this.setState(state) } render() { return

EmojiPicker

{['Apple', 'Google', 'Twitter', 'EmojiOne'].map((set) => { var value = set.toLowerCase(), props = { disabled: value == this.state.set } return })}
import {Picker} from 'emoji-picker'


<Picker
emojiSize={{this.state.emojiSize}}
perLine={{this.state.perLine}} {this.state.perLine < 10 ? ' ' : ' '}
sheetURL='images/sheet-{this.state.set}-64.png'
onClick={(emoji) => console.log(emoji)}
/>
console.log(emoji)} />
} } class Operator extends React.Component { render() { return {this.props.children} } } class Variable extends React.Component { render() { return {this.props.children} } } class String extends React.Component { render() { return {this.props.children} } } ReactDOM.render(, document.querySelector('div'))