the purpose of connect react code example Example: redux import connect import { connect } from 'react-redux'