0

查看全部 2 个回答

0
import { bindActionCreators } from 'redux'


const mapDispatchToProps = (dispatch, ownProps) => {
    return bindActionCreators({
        dispatch: dispatch
    })
}


export default connect(mapStateToProps,mapDispatchToProps)(AsyncApp);

另外要用Provider包裹 建议先看下redux-redux 的API
可以参考我的demo