mapstatetoprops dispatch code example
Example 1: redux dispatch no connect
store.dispatch({type:"UPDATE_VARIABLE", payload:variable.value})
Example 2: redux connect
//Connects your component to Redux-store
export default connect(mapState, mapDispatch)(Component)