react how to use connect in funtion components code example Example: redux import connect import { connect } from 'react-redux'