Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ReactDOM.render(
<ApolloProvider client={client}>
<Router>
<Fragment>
<nav className="pa3 pa4-ns">
<Link
className="link dim black b f6 f5-ns dib mr3"
to="/"
title="Feed"
>
Blog
</Link>
<NavLink
className="link dim f6 f5-ns dib mr3 black"
activeClassName="gray"
exact={true}
to="/"
title="Feed"
>
Feed
</NavLink>
<NavLink
className="link dim f6 f5-ns dib mr3 black"
activeClassName="gray"
exact={true}
to="/drafts"
title="Drafts"
>
Drafts
</NavLink>
<Link
to="/create"
className="f6 link dim br1 ba ph3 pv2 fr mb2 dib black"
>
+ Create Draft
</Link>
</nav>
<div className="fl w-100 pl4 pr4">
<Switch>
<Route exact path="/" component={FeedPage} />
<Route path="/drafts" component={DraftsPage} />
<Route path="/create" component={CreatePage} />
<Route path="/post/:id" component={DetailPage} />
</Switch>
</div>
</Fragment>
</Router>
</ApolloProvider>,
document.getElementById('root'),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.