use-query

PreviousNext

useQuery is a hook that allows you to fetch data from an API and cache the results.

Docs
hookshook

Preview

Get Live preview coming soon

We're working on safely rendering registry components inline.

Installation

npx shadcn@latest add @hooks/use-query

Usage

import { UseQuery } from "@/hooks/use-query"
const value = UseQuery()