Download react-instantsearch/examples/server-side-rendering/src/template.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 359 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-instantsearch/examples/server-side-rendering/src/template.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-instantsearch/examples/server-side-rendering/src/template.js
-
curl -L -o template.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-instantsearch/examples/server-side-rendering/src/template.js
359 Bytes
| export default ({ body, title, initialState }) => | |
| ` | |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script>window.__APP_INITIAL_STATE__ = ${initialState}</script> | |
| <title>${title}</title> | |
| </head> | |
| <body> | |
| <div id="root">${body}</div> | |
| </body> | |
| <script src="/assets/bundle.js"></script> | |
| </html> | |
| `; | |