Core API Overview > @adpt/core > useState
useState() function
Signature:
export declare function useState<ItemState>(init: UseStateInit<ItemState>): [ItemState, SetState<ItemState>];
Parameters
Parameter | Type | Description |
---|---|---|
init | UseStateInit <ItemState> |
Returns:
[ItemState,
SetState
<ItemState>]