Download spectrum/src/hot-routes.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 239 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/hot-routes.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/src/hot-routes.js
-
curl -L -o hot-routes.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/hot-routes.js
239 Bytes
| // @flow | |
| // This takes the ./routes.js file and makes it hot reload. | |
| // This should only be used on the client, not on the server! | |
| import { hot } from 'react-hot-loader'; | |
| import Routes from './routes'; | |
| export default hot(module)(Routes); | |