Shadcn Hooks

useSWR

A hook to get the latest value of a variable

useSWR

npx shadcn@latest add "https://shadcn-hooks.vercel.app/r/use-swr.json"
pnpm dlx shadcn@latest add "https://shadcn-hooks.vercel.app/r/use-swr.json"
yarn dlx shadcn@latest add "https://shadcn-hooks.vercel.app/r/use-swr.json"
bun x shadcn@latest add "https://shadcn-hooks.vercel.app/r/use-swr.json"

Copy and paste the following code into your project.

npm install swr
pnpm add swr
yarn add swr
bun add swr

Last updated on

On this page