Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafaelrozon/be6d5ccdda67d7ce900034e7314dc04f to your computer and use it in GitHub Desktop.
Save rafaelrozon/be6d5ccdda67d7ce900034e7314dc04f to your computer and use it in GitHub Desktop.
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