toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-react-core
/
react
/
useReducer
use
Reducer
external
fun
<
S
,
A
,
I
>
useReducer
(
reducer
:
Reducer
<
S
,
A
>
,
initializerArg
:
I
,
initializer
:
(
I
)
->
S
)
:
ReducerInstance
<
S
,
A
>
(
source
)
external
fun
<
S
,
A
>
useReducer
(
reducer
:
Reducer
<
S
,
A
>
,
initialState
:
S
)
:
ReducerInstance
<
S
,
A
>
(
source
)
external
fun
<
S
:
Any
,
A
>
useReducer
(
reducer
:
Reducer
<
S
?
,
A
>
)
:
ReducerInstance
<
S
?
,
A
>
(
source
)
Only works inside fc
See also
Hooks and Function Components