Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/netzo/deps/preact.ts>Component#setState

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
method Component.prototype.setState
import { Component } from "https://deno.land/x/netzo@0.4.40/deps/preact.ts";

Type Parameters

K extends keyof S

Parameters

state: ((prevState: Readonly<S>, props: Readonly<P>) => Pick<S, K> | Partial<S> | null) | (Pick<S, K> | Partial<S> | null)
optional
callback: () => void