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

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

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

type

<T>(initialState: T | (() => T)) => [T, UpdateStateFunction<T>]