Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mariorodriguespt/446ce069cab1695c7b32588b605b4414 to your computer and use it in GitHub Desktop.
Save mariorodriguespt/446ce069cab1695c7b32588b605b4414 to your computer and use it in GitHub Desktop.
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