Created
May 22, 2020 09:56
-
-
Save aaronmcadam/3659dc8fec1bf03d2cc57fb900dc75d4 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 { ApolloProvider } from '@apollo/react-hooks'; | |
import { CSSReset, theme, ThemeProvider } from '@chakra-ui/core'; | |
import { Global } from '@emotion/core'; | |
import React from 'react'; | |
import { YourApp } from './components/YourApp'; | |
import { client } from './graphql/client'; | |
export const App: React.FC = () => { | |
return ( | |
<ApolloProvider client={client}> | |
<ThemeProvider> | |
<CSSReset /> | |
<Global | |
styles={{ | |
body: { | |
backgroundColor: theme.colors.blue[50] | |
} | |
}} | |
/> | |
<YourApp /> | |
</ThemeProvider> | |
</ApolloProvider> | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment