connect functional component redux code example
Example 1: redux dispatch no connect
store.dispatch({type:"UPDATE_VARIABLE", payload:variable.value})
Example 2: redux import connect
import { connect } from 'react-redux'
store.dispatch({type:"UPDATE_VARIABLE", payload:variable.value})
import { connect } from 'react-redux'