Download react-boilerplate/internals/templates/containers/App/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 637 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-boilerplate/internals/templates/containers/App/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/react-boilerplate/internals/templates/containers/App/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-boilerplate/internals/templates/containers/App/index.js
637 Bytes
| /** | |
| * | |
| * App.js | |
| * | |
| * This component is the skeleton around the actual pages, and should only | |
| * contain code that should be seen on all pages. (e.g. navigation bar) | |
| * | |
| */ | |
| import React from 'react'; | |
| import { Switch, Route } from 'react-router-dom'; | |
| import HomePage from 'containers/HomePage/Loadable'; | |
| import NotFoundPage from 'containers/NotFoundPage/Loadable'; | |
| import GlobalStyle from '../../global-styles'; | |
| export default function App() { | |
| return ( | |
| <div> | |
| <Switch> | |
| <Route exact path="/" component={HomePage} /> | |
| <Route component={NotFoundPage} /> | |
| </Switch> | |
| <GlobalStyle /> | |
| </div> | |
| ); | |
| } | |