Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
at main 421 B view raw
1import React from 'react'; 2import { Client, Provider, cacheExchange, fetchExchange } from 'urql'; 3 4import PokemonList from './src/screens/PokemonList'; 5 6const client = new Client({ 7 url: 'https://trygql.formidable.dev/graphql/basic-pokedex', 8 exchanges: [cacheExchange, fetchExchange], 9}); 10 11const App = () => { 12 return ( 13 <Provider value={client}> 14 <PokemonList /> 15 </Provider> 16 ); 17}; 18 19export default App;