examples/with-pagination/README.md
This example shows how to implement pagination with urql in your React UI code.
It renders several pages as fragments with one component managing the variables for the page queries. This example is also reapplicable to other libraries, like Svelte or Vue.
To run this example install dependencies and run the start script:
yarn install
yarn run start
# or
npm install
npm run start
This example contains:
urql bindings and a React app with a client set up in src/App.jsPaginatedNpmSearch set up to render all pages in src/PaginatedNpmSearch.jssSearchResultPage running page queries in src/PaginatedNpmSearch.jsx