Created
February 16, 2019 21:18
-
-
Save hwillson/bdfc64600594dc12e84ca1daaed74308 to your computer and use it in GitHub Desktop.
Apollo Client - 2.5.0 Announcement Post - Code Splitting 2
This file contains 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 from 'react'; | |
import { Route } from 'react-router-dom'; | |
import Header from '../components/Header'; | |
import { Home, Messages, Stats } from '../lazy' | |
const App = () => ( | |
<div className="app"> | |
<Header /> | |
<Route exact path="/" component={Home} /> | |
<Route path="/messages" component={Messages} /> | |
<Route path="/stats" component={Stats} /> | |
</div> | |
); | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment