Skip to main content
Module

x/hono/middleware.ts>useReducer

Web Framework built on Web Standards
Extremely Popular
Go to Latest
variable useReducer
Re-export
import { useReducer } from "https://deno.land/x/hono@v4.2.7/middleware.ts";

type

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