Receive the Event Handler

Can someone explain what does this error mean?
expected undefined to equal [Function

1 Like

This error is because you’ve used the name of the method from Parent.js, instead of the attribute name you gave it when you passed it down to the Child.
The attribute in the select should be onChange={this.props.onChange}

I also had this problem. I think the wording of the instructions makes it unclear for someone who has only seen the functionality once before earlier in the course.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.