Last active
May 26, 2019 07:11
-
-
Save rafaelrozon/be6d5ccdda67d7ce900034e7314dc04f to your computer and use it in GitHub Desktop.
This file contains 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 { routes } from '../constants'; | |
import TodoPage from '~/pages/Todos'; | |
import Home from '~/pages/Home'; | |
const RootRoutes = () => ( | |
<Switch> | |
<Route exact path={routes.Home.route} component={Home} /> | |
<Route exact path={routes.Todo.route} component={TodoPage} /> | |
</Switch> | |
); | |
export default RootRoutes; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment