{this.changeIcons} imgs={this.state.imgs}/> )奇怪的是,它与同一个子组件中的另一个函数工作得非常好我仍然收到相同的错误消息TypeError: this.props.changeIcon is not a function。我是不是遗漏了什么?有人能发现错误吗?
当按钮被单击时,function3会被成功调用,然后它会指出this.props.function不是一个函数。我甚至用这个函数绑定了这个函数。然而,不知道我错在哪里。this.function3.bind(this) //tried this as well. this.props.function