Created
August 15, 2017 04:53
-
-
Save yoosuf/5bb487012513f8d938410fa975f91ca4 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, { Component } from 'react'; | |
import { BrowserRouter as Router, Route } from 'react-router-dom' | |
import Layout from './components/layout/Layout' | |
import Home from './components/Home' | |
import Explore from './components/Explore' | |
import Profile from './components/Profile' | |
class App extends Component { | |
render() { | |
return ( | |
<Router> | |
<span> | |
<Layout> | |
<Route exact path="/" component={Home}/> | |
<Route path="/explore" component={Explore}/> | |
<Route path="/profile" component={Profile}/> | |
</Layout> | |
</span> | |
</Router> | |
); | |
} | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment