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]
function useState<T>(): [T | undefined, (value: T | (previous: T | undefined): T | undefined | undefined): void]