State<T>(initialValue?: StateValue<T>): StateInstance<T>
Create a new state instance with the given initial value
optional
initialValue: StateValue<T> = null
- The initial state value
StateInstance with core utilities
State<T>(initialValue?: StateValue<T>): StateInstance<T>
Create a new state instance with the given initial value
initialValue: StateValue<T> = null
StateInstance with core utilities
Add Package
deno add jsr:@snrraptopack/raptor-state
Import symbol
import { State } from "@snrraptopack/raptor-state";
Import directly with a jsr specifier
import { State } from "jsr:@snrraptopack/raptor-state";
Add Package
pnpm i jsr:@snrraptopack/raptor-state
pnpm dlx jsr add @snrraptopack/raptor-state
Import symbol
import { State } from "@snrraptopack/raptor-state";
Add Package
yarn add jsr:@snrraptopack/raptor-state
yarn dlx jsr add @snrraptopack/raptor-state
Import symbol
import { State } from "@snrraptopack/raptor-state";
Add Package
vlt install jsr:@snrraptopack/raptor-state
Import symbol
import { State } from "@snrraptopack/raptor-state";
Add Package
npx jsr add @snrraptopack/raptor-state
Import symbol
import { State } from "@snrraptopack/raptor-state";
Add Package
bunx jsr add @snrraptopack/raptor-state
Import symbol
import { State } from "@snrraptopack/raptor-state";