Created
June 25, 2019 10:04
-
-
Save chris001177/349d7026211e0fd01af97afa7d5fb9f4 to your computer and use it in GitHub Desktop.
This file contains 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 { Provider, createClient } from 'urql'; | |
const client = createClient({ | |
url: 'http://localhost:4000/graphql', | |
}); | |
const YourApp = () => ( | |
<Provider value={client}> | |
{/* ... */} | |
</Provider>; | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment