Skip to content

Instantly share code, notes, and snippets.

@bnhansn
Created October 20, 2016 17:47
Show Gist options
  • Save bnhansn/28beda192e2843abdabef71908b6a7af to your computer and use it in GitHub Desktop.
Save bnhansn/28beda192e2843abdabef71908b6a7af to your computer and use it in GitHub Desktop.
// @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