Uvacoder / demo-nextjs-api-hooks-434

Home Page:demo-nextjs-api-hooks.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API Hooks

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/api-hooks
cd api-hooks

Install it and run:

yarn
yarn dev
# or
npm install
npm run dev

The Idea behind the Example

Show how you could create custom hooks, using SWR internally, for your different data requirements and use them in your application.

About

demo-nextjs-api-hooks.vercel.app


Languages

Language:JavaScript 100.0%