Shadcn Hooks

useSWR

A hook to get the latest value of a variable

Installation

npx shadcn@latest add @hooks/use-swr
pnpm dlx shadcn@latest add @hooks/use-swr
yarn dlx shadcn@latest add @hooks/use-swr
bun x shadcn@latest add @hooks/use-swr

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