const mapStateToProps = state => {
console.log(state);
return {
counter: state.counter,
isLogged: state.isLogged
}
}
这就是我通过州的方式。但是,错误提示计数器和 isLogged 未定义。为什么 ?
const mapStateToProps = state => {
console.log(state);
return {
counter: state.counter,
isLogged: state.isLogged
}
}
这就是我通过州的方式。但是,错误提示计数器和 isLogged 未定义。为什么 ?