ReactJS for input with autocomplete based on list of words
ReactJS for input with autocomplete based on list of words.
With npm:
$ npm install react-predict
With Bower:
$ bower install react-predict
Or use the files on dist
folder.
Don't forget to import the react-predict.css
(or react-predict.min.css
) file too.
var words = [
'This',
'is',
'Sparta'
];
React.render(<Predict words={ words } {...otherOptions /* See below */}/>,
document.getElementById('search-box'));
You can pass the following props for Predict:
[]
)words
option is an array, wordsSettings will be passed when instancing the jsT9 tree. (default: {}
)'div'
){}
){}
)true
)true
)true
)