Created
June 4, 2018 17:01
-
-
Save SaraVieira/8f1c8514d00e82235420d7a50a1316df 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 { Route, Switch } from 'react-router-dom' | |
import Home from './Pages/Home' | |
import Speakers from './Pages/Speakers' | |
import Speaker from './Pages/Speaker' | |
import Tags from './Pages/Tags' | |
import Tag from './Pages/Tag' | |
import Favorites from './Pages/Favorites' | |
export default () => ( | |
<Switch> | |
<Route exact path="/" component={Home} /> | |
<Route exact path="/favorites" component={Favorites} /> | |
<Route exact path="/categories" component={Tags} /> | |
<Route exact path="/category/:category" component={Tag} /> | |
<Route exact path="/speakers" component={Speakers} /> | |
<Route exact path="/speaker/:speaker" component={Speaker} /> | |
</Switch> | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment