Skip to content

Instantly share code, notes, and snippets.

@scottdomes
Created January 26, 2019 00:00
Show Gist options
  • Save scottdomes/30950e0602498bee775d5b0e13962bb1 to your computer and use it in GitHub Desktop.
Save scottdomes/30950e0602498bee775d5b0e13962bb1 to your computer and use it in GitHub Desktop.
const App = () => {
return (
<Router>
<React.Fragment>
<Route path="/apollo" component={ApolloMain} />
<Route path="/relay" component={RelayMain} />
</React.Fragment>
</Router>
);
};
export default App;
@jerzzhang
Copy link

jerzzhang commented May 4, 2020

Is <React.Fragment> necessary here? The Component would work without it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment