A simple react input component to query your algolia index
Demo : http://revolunet.github.io/algolia-react-input/#/example1
const algoliasearch = require('algoliasearch');
const algoliaClient = algoliasearch('APPLICATION_ID', 'SEARCH_ONLY_API_KEY');
const algoliaOptions = {
hitsPerPage: 200
};
return <AlgoliaInput
client={ algoliaClient }
index='Products'
options= { algoliaOptions }
onResults={ this.onResults }
onError={ this.onError }
placeholder='Product Search...'
/>;
See complete example in ./docs/AlgoliaExample.js
Contributions welcome; Please submit all pull requests the against master branch. If your pull request contains JavaScript patches or features, you should include relevant unit tests. Thanks!
- Julien Bouquillon [email protected] http://github.com/revolunet