Created
June 4, 2018 17:11
-
-
Save SaraVieira/a3d57294bf745feae063fd692591ee31 to your computer and use it in GitHub Desktop.
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
import { getDataFromTree, ApolloProvider } from 'react-apollo' | |
import client from './Utils/apollo' | |
import theme from './Utils/theme' | |
... | |
const Root = () => ( | |
<ApolloProvider client={client}> | |
<ThemeProvider theme={theme}> | |
<StaticRouter location={req.url} context={context}> | |
<App /> | |
</StaticRouter> | |
</ThemeProvider> | |
</ApolloProvider> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment