Skip to content

Instantly share code, notes, and snippets.

@kluu1
Last active March 20, 2020 20:56
Show Gist options
  • Select an option

  • Save kluu1/b275ba10a09b9ddf74c8f9e3d76b66b9 to your computer and use it in GitHub Desktop.

Select an option

Save kluu1/b275ba10a09b9ddf74c8f9e3d76b66b9 to your computer and use it in GitHub Desktop.
import App from 'next/app'
import { ApolloProvider } from '@apollo/react-hooks';
import { Container} from 'semantic-ui-react'
import withData from '../utils/apollo-client';
import Layout from '../components/_App/Layout'
class MyApp extends App {
render() {
const { Component, apollo } = this.props
return (
<ApolloProvider client={apollo}>
<Layout>
<Container>
<Component />
</Container>
</Layout>
</ApolloProvider>
)
}
}
export default withData(MyApp)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment