Subscribe to Evented Mind to watch the full video.

Already have an Evented Mind subscription?

Subscribe to Evented Mind to watch the full video.

Need a second look? Watch again

Getting Started With React

Event Handlers

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.

  • React
Join the Discussion

Want to leave a comment? .