@lynx-js/react / useState
Function: useState()
useState(initialState)
Returns a stateful value, and a function to update it.
Type Parameters
Parameters
Returns
[S, Dispatch<SetStateAction<S>>]
Version
16.8.0
See
https://react.dev/reference/react/useState
Defined in
.pnpm/@types+react@18.3.11/node_modules/@types/react/ts5.0/index.d.ts:1876
useState()
Returns a stateful value, and a function to update it.
Type Parameters
Returns
[S | undefined, Dispatch<SetStateAction<S | undefined>>]
Version
16.8.0
See
https://react.dev/reference/react/useState
Defined in
.pnpm/@types+react@18.3.11/node_modules/@types/react/ts5.0/index.d.ts:1884