我正在尝试遍历一个包含数组的对象,该数组在function中包含其中的对象,并且我得到了.map函数上的一个错误。下面是.map函数,后面跟着this.state中的对象//trying to access January from the object which is 0 starting month(y,m));
//getDaysArray(y,m) r
TypeError: this.props.messages.map is not a functionC:/Users/User/Desktop/Project我目前正在处理的示例来自freecodecamp,我已经在代码编辑器中测试了这些代码并通过了挑战(除了这次我是在我自己的机器上做的,并构造了我自己的文件树)。/DisplayMessages';
import { connect } from</em