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