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.
422 B · 19 lines
JSX
at main
1234567891011121314151617181920import React from 'react';import { Client, Provider, cacheExchange, fetchExchange } from 'urql';
import PaginatedNpmSearch from './PaginatedNpmSearch';
const client = new Client({ url: 'https://trygql.formidable.dev/graphql/relay-npm', exchanges: [cacheExchange, fetchExchange],});
function App() { return ( <Provider value={client}> <PaginatedNpmSearch /> </Provider> );}
export default App;