Download react-instantsearch/examples/server-side-rendering/src/createApp.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 353 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-instantsearch/examples/server-side-rendering/src/createApp.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-instantsearch/examples/server-side-rendering/src/createApp.js
-
curl -L -o createApp.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-instantsearch/examples/server-side-rendering/src/createApp.js
353 Bytes
| import algoliasearch from 'algoliasearch/lite'; | |
| import App from './App'; | |
| const searchClient = algoliasearch( | |
| 'latency', | |
| '6be0576ff61c053d5f9a3225e2a90f76' | |
| ); | |
| export const createApp = () => { | |
| const indexName = 'instant_search'; | |
| const props = { | |
| indexName, | |
| searchClient, | |
| }; | |
| return { | |
| App, | |
| props, | |
| }; | |
| }; | |
| export default App; | |