Skip to content

Instantly share code, notes, and snippets.

@SaraVieira
Created June 4, 2018 17:10
Show Gist options
  • Save SaraVieira/27dfbc5343fa1a39e1547db9fb6be975 to your computer and use it in GitHub Desktop.
Save SaraVieira/27dfbc5343fa1a39e1547db9fb6be975 to your computer and use it in GitHub Desktop.
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'
import './Utils/global-styles'
import './Utils/icons'
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