const mapStateToProps = (state, ownProps) => {
return { active: ownProps.filter ===state.visibilityFilter }
}
请问哪位大神知道代码中那个ownProps是不是容器组件的Props。
const mapStateToProps = (state, ownProps) => {
return { active: ownProps.filter ===state.visibilityFilter }
}
请问哪位大神知道代码中那个ownProps是不是容器组件的Props。
本文标题:2018-08-21
本文链接:https://www.haomeiwen.com/subject/tppjiftx.html
网友评论