useQuery
useQuery is a hook that allows you to fetch data from an API and cache the results.
Installation
npx shadcn@latest add @hooks/use-querypnpm dlx shadcn@latest add @hooks/use-queryyarn dlx shadcn@latest add @hooks/use-querybun x shadcn@latest add @hooks/use-queryCopy and paste the following code into your project.
npm install @tanstack/react-querypnpm add @tanstack/react-queryyarn add @tanstack/react-querybun add @tanstack/react-queryLast updated on