Packages@robojs/sync
SyncBoxSetState()<T>
Type Alias: SyncBoxSetState()<T>
type SyncBoxSetState<T> = (newState, options?) => void;setState function signature with options support.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type |
|---|---|
newState | Partial<T> | (prev) => T |
options? | SetStateOptions |
Returns
void
