Module

x/hono/middleware.ts>useReducer

Fast, Lightweight, Web-standards
Extremely Popular
Go to Latest
variable useReducer
import { useReducer } from "https://dotland.deno.dev/x/hono@v4.2.2/middleware.ts";

type

<T, A>(
reducer: (state: T, action: A) => T,
initialArg: T,
init?: (initialState: T) => T,
) => [T, (action: A) => void]
import useReducer
import { useReducer } from "https://dotland.deno.dev/x/hono@v4.2.2/middleware.ts";