Skip to content
aq-ui
Back to HooksHook

Use Lazy Ref

Open-code aq-ui React hook for Use Lazy Ref.

Installation

pnpm dlx aq-ui@alpha add use-lazy-ref

API reference

Client module

Import the parts you need, then jump to an export for its contract.

View full source

Quick start

"use client"

import { useLazyRef } from "@/hooks/use-lazy-ref"

useLazyRef

functionSource L7

Open-code aq-ui React hook for Use Lazy Ref.

function useLazyRef<T>(initializer: () => T): React.MutableRefObject<T>
Returns
React.MutableRefObject<T>

Parameters

NameType
initializer() => T

Files

  • hooks/use-lazy-ref.ts

Source