Back to Urql

With Pagination (in React)

examples/with-pagination/README.md

1.8.21.3 KB
Original Source

With Pagination (in React)

<p> <a href="https://stackblitz.com/github/urql-graphql/urql/tree/main/examples/with-pagination"> </a> <a href="https://codesandbox.io/p/sandbox/github/urql-graphql/urql/tree/main/examples/with-pagination"> </a> </p>

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:

sh
yarn install
yarn run start
# or
npm install
npm run start

This example contains: