Module

x/hono/middleware.ts>useState

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

type

<T>(initialState: T | (() => T)) => [T, UpdateStateFunction<T>]
import useState
import { useState } from "https://dotland.deno.dev/x/hono@v4.1.0/middleware.ts";