function mapStateToProps(state) {
const {titleBtnStatus} = state
return {
slideState: titleBtnStatus.slideState
}
}
function mapStateToProps(state) {
return {
slideState: state.slideState
}
}
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
这个是 ES6 的变量解构赋值,等同于: