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

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

export default Routes;