FunctionOptionalinitial: ValueInitial value stored by the signal.
Optionaltarget: objectThe target to which the signal is bound.
Optionalkey: PropertyKeyThe key at which the signal will be stored in the target.
A reactive box for reading/updating the value.
Create a standalone reactive signal box. Returns a SignalBox wrapping the initial value.
Function
signal