Created
August 11, 2017 13:18
-
-
Save antonybudianto/603f4403e2372d36e984f2bb187b9ace 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, | |
Switch | |
} from 'react-router-dom'; | |
import './App.css'; | |
import LandingPage from './LandingPage/LandingPage'; | |
import PortfolioPage from './PortfolioPage/PortfolioPage'; | |
import NotFoundPage from './ErrorPage/NotFoundPage/NotFoundPage'; | |
class App extends Component { | |
render() { | |
return ( | |
<Router> | |
<div> | |
<Switch> | |
<Route exact path="/" component={LandingPage} /> | |
<Route path="/portfolio" component={PortfolioPage} /> | |
<Route component={NotFoundPage} /> | |
</Switch> | |
</div> | |
</Router> | |
); | |
} | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment