toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-react-core
/
react
/
useState
use
State
external
fun
<
T
:
Any
>
useState
(
)
:
StateInstance
<
T
?
>
(
source
)
external
fun
<
T
>
useState
(
initialValue
:
T
)
:
StateInstance
<
T
>
(
source
)
external
fun
<
T
>
useState
(
initializer
:
(
)
->
T
)
:
StateInstance
<
T
>
(
source
)
Only works inside fc
See also
Hooks and Function Components