ReduxStore

fun <S : Any> ReduxStore(reducer: ReducerFun<S, A>, initialState: S, vararg middlewares: Middleware<S>)

Creates a Redux store with given reducer function and initial state.

Parameters

S

redux state type

A

redux action type

reducer

a reducer function

initialState

an initial state

middlewares

a list of optional Redux Kotlin middlewares