Skip to content

Instantly share code, notes, and snippets.

@aaronmcadam
Created May 22, 2020 09:56
Show Gist options
  • Save aaronmcadam/3659dc8fec1bf03d2cc57fb900dc75d4 to your computer and use it in GitHub Desktop.
Save aaronmcadam/3659dc8fec1bf03d2cc57fb900dc75d4 to your computer and use it in GitHub Desktop.
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