Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

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

type

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