Receive the Event Handler


#1

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

https://www.codecademy.com/courses/react-102/lessons/child-updates-parents-state/exercises/child-parent-receive-handler?action=resume_content_item


#2

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.


#3

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