LogoRobo.js
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

ParameterType
newStatePartial<T> | (prev) => T
options?SetStateOptions

Returns

void

On this page