const mapstateProps = state =>{
retrun{
...state
}
}
export default connect(mapstateProps,null,null,{withRef:true})(classname)
export default (classname) 该表model 要传递dispatch={this.props.dispatch}
指定组件的ref refs={ref=>{this.gform=ref} this.gform 调用
ref={name} this.refs.name调用
本文介绍如何使用Redux的connect高阶组件将React组件与Redux状态进行连接。通过const mapStateProps = state => {...state}
1386

被折叠的 条评论
为什么被折叠?



