Something went wrong. Try again.
Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
Something went wrong. Try again.
421 B · 19 lines
JavaScript
at main
1234567891011121314151617181920import React from 'react';import { Client, Provider, cacheExchange, fetchExchange } from 'urql';
import PokemonList from './src/screens/PokemonList';
const client = new Client({ url: 'https://trygql.formidable.dev/graphql/basic-pokedex', exchanges: [cacheExchange, fetchExchange],});
const App = () => { return ( <Provider value={client}> <PokemonList /> </Provider> );};
export default App;