Routes.jsx 540 Bytes
Newer Older
David Haynes's avatar
David Haynes committed
1
import React from "react";
2 3 4 5 6 7 8 9 10 11
import { Route, withRouter } from "react-router-dom";
import {
  HomePage,
  AboutPage,
  DhaynesPage,
  DebugCRUD,
  NavBar
} from "Components";

const NavBarWithRouter = withRouter(props => <NavBar {...props} />);
Zach Osman's avatar
Zach Osman committed
12

13 14 15 16 17 18 19 20 21
const Routes = () => (
  <div>
    <NavBarWithRouter />
    <Route path="/" exact component={HomePage} />
    <Route path="/dhaynes" component={DhaynesPage} />
    <Route path="/about" component={AboutPage} />
    <Route path="/debug" component={DebugCRUD} />
  </div>
);
Zach Osman's avatar
Zach Osman committed
22 23

export default Routes;