kvision / pl.treksoft.kvision.redux / createReduxStore

createReduxStore

inline fun <reified S : Any, A> createReduxStore(noinline reducer: <ERROR CLASS><S, A>, initialState: S, vararg middlewares: dynamic): ReduxStore<S, A>

An inline helper function for creating Redux store.

Parameters

reducer - a reducer function

state - an initial state

middlewares - a list of optional Redux JS middlewares