Created
August 27, 2017 14:01
-
-
Save mariorodriguespt/446ce069cab1695c7b32588b605b4414 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 { BrowserRouter, Route } from 'react-router-dom'; | |
import createBrowserHistory from 'history/createBrowserHistory'; | |
import Homepage from './pages/homepage/Homepage.jsx'; | |
import Explore from './pages/explore/Explore.jsx'; | |
import AboutUs from './pages/about-us/AboutUs'; | |
const browserHistory = createBrowserHistory(); | |
export const renderRoutes = () => ( | |
<BrowserRouter> | |
<div> | |
<Route exact path="/" component={ Homepage }/> | |
<Route exact path="/explore" component={ Explore }/> | |
<Route exact path="/about-us" component={ AboutUs }/> | |
</div> | |
</BrowserRouter> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment