Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 637 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 637 Bytes

Xior TypeScript

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/xior-typescript
cd xior-typescript

Install it and run:

yarn
yarn dev
# or
npm install
npm run dev

The Idea behind the Example

Show how to use the basic xior along with TypeScript to type both the request object and the data received from SWR.