/swrpaginate

Primary LanguageJavaScript

Pagination

One-Click Deploy

Deploy your own SWR project with ZEIT Now.

Deploy with ZEIT Now

How to Use

Download the example:

curl https://codeload.github.com/zeit/swr/tar.gz/master | tar -xz --strip=2 swr-master/examples/pagination
cd pagination

Install it and run:

yarn
yarn dev
# or
npm install
npm run dev

Deploy it to the cloud with now (download)

now

The Idea behind the Example

Show how to use the useSWRPages hook to consume paginated data from an API.