Skip to content

useCallback

reference
1 min readUpdated

Kind: Function

Source: src/jsx/hooks/index.ts

Part of: Jsx

Signature

ts
function useCallback(callback: T, deps: readonly unknown[]): T

Parameters

NameType
callbackT
depsreadonly unknown[]

Returns: T

Used by

2 references from 2 files. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

Imported by (2)

  • FormContextsrc/jsx/dom/hooks/index.ts:24
  • clearCachesrc/jsx/dom/intrinsic-element/components.ts:18

Was this page helpful?

Download as PDF
useCallback — Hono (narrator proof)