b3a631305d
Fixes #20474 * Switch API url to working URL used in apollo example * Update deps * Move styled jsx out of the way to avoid demonstrating too many unfamiliar concepts at once dev, build and start work now.
13 lines
389 B
JavaScript
13 lines
389 B
JavaScript
import '../styles.css'
|
|
import { ClientContext } from 'graphql-hooks'
|
|
import { useGraphQLClient } from '../lib/graphql-client'
|
|
|
|
export default function App({ Component, pageProps }) {
|
|
const graphQLClient = useGraphQLClient(pageProps.initialGraphQLState)
|
|
|
|
return (
|
|
<ClientContext.Provider value={graphQLClient}>
|
|
<Component {...pageProps} />
|
|
</ClientContext.Provider>
|
|
)
|
|
}
|