Created
October 3, 2017 02:49
-
-
Save yusinto/a99e84d4c30ca9096ed4f308d39bacf1 to your computer and use it in GitHub Desktop.
Example routes with apollo
This file contains hidden or 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
<Route path="/" component={App}> | |
<IndexRoute component={Home} /> | |
<Route path="example-path"> | |
<IndexRoute component={ExampleLanding} /> | |
</Route> | |
<Route path="/apollo-path"> | |
<IndexRoute component={ApolloLanding} /> | |
</Route> | |
<Route path="*" component={NotFoundPage} /> | |
</Route> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment