Created
October 20, 2016 17:47
-
-
Save bnhansn/28beda192e2843abdabef71908b6a7af 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'; | |
| class App extends Component { | |
| render() { | |
| return ( | |
| <BrowserRouter> | |
| <div> | |
| <Match exactly pattern="/" component={Home} /> | |
| <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