cheatsheet reactjs redux code example
Example 1: react redux cheat sheet
// Dispatches an action; this changes the state
store.dispatch({ type: 'INCREMENT' })
store.dispatch({ type: 'DECREMENT' })
Example 2: react redux cheat sheet
// Optional - you can pass `initialState` as a second arg
let store = createStore(counter, { value: 0 })