Mirror: The small sibling of the graphql package, slimmed down for client-side libraries.
1import { render } from 'preact';
2import { Provider, createClient } from '@urql/preact';
3import Pokemons from './Pokemons';
4
5const client = createClient({
6 url: 'https://trygql.formidable.dev/graphql/basic-pokedex',
7});
8
9render(
10 <React.StrictMode>
11 <Provider value={client}>
12 <Pokemons />
13 </Provider>
14 </React.StrictMode>,
15 document.getElementById('root')
16);