@microsoft/fast-element > State
State type
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
A read/write stateful value.
Signature:
export type State<T> = ReadonlyState<T> & {
current: T;
set(value: T): void;
asReadonly(): ReadonlyState<T>;
};
References: ReadonlyState