Module

x/hono/jsx/hooks/index.ts>useReducer

Fast, Lightweight, Web-standards
Very Popular
Go to Latest
variable useReducer
import { useReducer } from "https://dotland.deno.dev/x/hono@v4.1.0/jsx/hooks/index.ts";

type

<T, A>(
reducer: (state: T, action: A) => T,
initialArg: T,
init?: (initialState: T) => T,
) => [T, (action: A) => void]