export default connect(mapstatetoprops)(app) code example Example: redux import connect import { connect } from 'react-redux'