【发布时间】:2020-08-06 22:22:47
【问题描述】:
足够简单的问题。我正在尝试读取此对象数组中“长度”变量的值(参见图 1)
我的代码
const mapStateToProps = (state, ownProps) => {
const lecture = state.firestore.ordered.lectures;
const length = lecture.length;
return {
length: length,
}
}
【问题讨论】:
标签: arrays react-redux mapstatetoprops