useState

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