Deploy your own SWR project with Vercel.
Download the example:
curl https://codeload.github.com/vercel/swr/tar.gz/main | tar -xz --strip=2 swr-main/examples/basic
cd basic
Install it and run:
yarn
yarn dev
# or
npm install
npm run dev
Show a basic usage of SWR fetching data from an API in two different pages.