Skip to content

Tapestry API


createState<T>(stateName, initialValue): State<T>

Defined in: types.d.ts:86

Creates a new reactive state instance.

Type Parameters

T

T

Parameters

stateName

string

Unique name for the state.

initialValue

T

Initial value of the state.

Returns

State<T>