React allows us to define event handlers directly in JSX markup making it easy to see how behavior is wired up to components. In this lesson you'll add a submit event handler to the CommentForm component. You'll use the ES6 ("Harmony") fat arrow syntax to bind the event handler to the correct value of "this". You'll see how we can refer to children components by name using something called a "ref". Finally, you'll pass the submit handler as a callback property for better code organization.
One-On-One Questions or Comments?
Something not making sense, want to share your thoughts or just say hello? I check this daily!