import React from 'react' import classnames from 'classnames' import Autocomplete from 'react-autocomplete' class AutocompleteInput extends React.Component { static propTypes = { value: React.PropTypes.string, options: React.PropTypes.array, onChange: React.PropTypes.func, } static defaultProps = { onChange: () => {}, options: [], } render() { const AutocompleteMenu = (items, value, style) =>
return item[0]} onSelect={v => this.props.onChange(v)} onChange={(e, v) => this.props.onChange(v)} renderItem={(item, isHighlighted) => (
{item[1]}
)} /> } } export default AutocompleteInput