kvision / pl.treksoft.kvision.redux / createReduxStore

createReduxStore

(js) fun <S : Any, A : RAction> createReduxStore(reducer: ReducerFun<S, A>, initialState: S, vararg middlewares: Middleware<S>): ReduxStore<S, A>
fun <S : Any, A : RAction> createReduxStore(reducer: Reducer<S, A>, initialState: S, vararg middlewares: dynamic): ReduxStore<S, A>

An inline helper function for creating Redux store.

Parameters

reducer - a reducer function

initialState - an initial state

middlewares - a list of optional Redux JS middlewares