@antadesign/anta
Preparing search index...
jsx-runtime
useState
Function useState
Unreviewed
useState
<
S
>
(
initial
:
S
|
(
()
=>
S
)
)
:
[
S
,
(
next
:
S
|
(
(
prev
:
S
)
=>
S
)
)
=>
void
]
Hooks delegate to the object supplied to
configure()
, or React by default.
Type Parameters
S
Parameters
initial
:
S
|
(
()
=>
S
)
Returns
[
S
,
(
next
:
S
|
(
(
prev
:
S
)
=>
S
)
)
=>
void
]
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@antadesign/anta
Loading...
Hooks delegate to the object supplied to
configure(), or React by default.