redux thunk cheat sheet 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
// Gets the current state
store.getState()
Example 3: react redux cheat sheet
import { createStore } from 'redux'