1
0
Fork 0
docsearch/dev/app.js
Vincent Voyer 3c98ea5882 chore(stack update): update the whole docsearch stack (#173)
* chore(stack update): update the whole docsearch stack

In an effort to reduce our stack diversity I am moving docsearch to:
- latest eslint
- prettier
- webpack 2
- babel 6 (babel 7 is soon to be released, we were on babel 5)
- babel-preset-env (support: IE >=9, Two latest version of evergreen
browsers).
- jest

* chore(contrib): remove develop branch, cc @redox
2017-03-17 16:22:00 +01:00

10 lines
228 B
JavaScript

import docsearch from '../index.js';
docsearch({
apiKey: 'e3d767b736584dbe6d4c35f7cf7d4633',
indexName: 'react-native',
inputSelector: '#search-input',
debug: true,
});
document.getElementById('search-input').focus();