Reference
useState
Stores component-local state and returns the current value with an updater.
Signature
function useState<T>(initial: T | (): T): [T, (value: T | (previous: T): T): void]Reference
Stores component-local state and returns the current value with an updater.
function useState<T>(initial: T | (): T): [T, (value: T | (previous: T): T): void]