What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-13 15:06:11
simple redux implementation
// simplified createStore function const createStore = (yourReducer) => { let listeners = []; let currentState = yourReducer(undefined, {}); return { getState: () => currentState, dispatch: (action) => { currentState = yourRe... Add solution