UIElement Docs Version 0.13.1

🔗 Function: state()

state<T>(initialValue): State<T>

Defined in: node_modules/@zeix/cause-effect/src/state.ts:27

Create a new state signal

🔗 Type Parameters

🔗 T

T extends object

🔗 Parameters

🔗 initialValue

T

initial value of the state

🔗 Returns

State<T>

  • new state signal

🔗 Since

0.9.0