redux export const connect code example
Example 1: redux import connect
import { connect } from 'react-redux'
Example 2: redux connect
//Connects your component to Redux-store
export default connect(mapState, mapDispatch)(Component)
import { connect } from 'react-redux'
//Connects your component to Redux-store
export default connect(mapState, mapDispatch)(Component)