Instantly share code, notes, and snippets.

What would you like to do?
import React from 'react'
import { ConnectedRouter } from 'connected-react-router'
import { Route, Switch } from 'react-router-dom'
import TopBar from './TopBar'
import ArticleList from '../containers/ArticleList'
import Creator from '../containers/Creator'
const App = ({history}) => (
<ConnectedRouter history={history}>
<TopBar />
<Route exact path='/' component={ArticleList} />
<Route path='/new' component={Creator} />
export default App
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment