Last active
October 21, 2016 14:06
-
-
Save bnhansn/7b9e5173410ee761fea27e43846bb986 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
| // @flow | |
| import React, { Component } from 'react'; | |
| import { BrowserRouter, Match, Miss } from 'react-router'; | |
| import Home from '../Home'; | |
| import NotFound from '../../components/NotFound'; | |
| import Login from '../Login'; | |
| import Signup from '../Signup'; | |
| class App extends Component { | |
| render() { | |
| return ( | |
| <BrowserRouter> | |
| <div style={{ display: 'flex', flex: '1' }}> | |
| <Match exactly pattern="/" component={Home} /> | |
| <Match pattern="/login" component={Login} /> | |
| <Match pattern="/signup" component={Signup} /> | |
| <Miss component={NotFound} /> | |
| </div> | |
| </BrowserRouter> | |
| ); | |
| } | |
| } | |
| export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment