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

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

Web Framework built on Web Standards
Very Popular
Go to Latest
variable useReducer
import { useReducer } from "https://deno.land/x/hono@v4.3.10/jsx/hooks/index.ts";

type

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