|
@ -30,7 +30,6 @@ import 'css/algolia.css'; |
|
|
|
|
|
|
|
|
class Template extends Component { |
|
|
class Template extends Component { |
|
|
componentDidMount() { |
|
|
componentDidMount() { |
|
|
loadScript(algoliaURL).then(() => { |
|
|
|
|
|
// Initialize Algolia search.
|
|
|
// Initialize Algolia search.
|
|
|
// TODO Is this expensive? Should it be deferred until a user is about to search?
|
|
|
// TODO Is this expensive? Should it be deferred until a user is about to search?
|
|
|
// eslint-disable-next-line no-undef
|
|
|
// eslint-disable-next-line no-undef
|
|
@ -39,7 +38,6 @@ class Template extends Component { |
|
|
indexName: 'react', |
|
|
indexName: 'react', |
|
|
inputSelector: '#algolia-doc-search', |
|
|
inputSelector: '#algolia-doc-search', |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
render() { |
|
|
render() { |
|
|