Skip to content

Instantly share code, notes, and snippets.

@hwillson
Created February 16, 2019 21:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hwillson/bdfc64600594dc12e84ca1daaed74308 to your computer and use it in GitHub Desktop.
Save hwillson/bdfc64600594dc12e84ca1daaed74308 to your computer and use it in GitHub Desktop.
Apollo Client - 2.5.0 Announcement Post - Code Splitting 2
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