/suspense

Primary LanguageJavaScript

Basic

One-Click Deploy

Deploy your own SWR project with Vercel.

Deploy with Vercel

How to Use

Download the example:

curl https://codeload.github.com/vercel/swr/tar.gz/main | tar -xz --strip=2 swr-main/examples/suspense
cd suspense

Install it and run:

yarn
yarn dev
# or
npm install
npm run dev

The Idea behind the Example

Show how to use the SWR suspense option with React suspense.