Core API Overview > @adpt/core > Component > setState
Component.setState() method
Signature:
setState(stateUpdate: Partial<State> | StateUpdater<Props, State>): void;
Parameters
Parameter | Type | Description |
---|---|---|
stateUpdate | Partial<State> |
StateUpdater <Props, State> |
Returns:
void