Created
August 13, 2020 00:21
-
-
Save misselliev/eb05d2be32e3dd6d8c75b3737a6323c0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import { Switch, Route } from 'react-router-dom'; | |
| import TourDates from './pages/TourDates'; | |
| import Home from './pages/Home'; | |
| const Routes: React.FC = () => ( | |
| <Switch> | |
| <Route exact path="/" component={Home} /> | |
| <Route path="/dates" component={TourDates} /> | |
| </Switch> | |
| ); | |
| export default Routes; |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Creating a Routes file for an article on Dev.To