react-events Flashcards
1
Q
How to you pass an event handler to a React component?
A
you can pass a function into the onClick attribute, pass down props
2
Q
How do you add custom event handlers to a React component?
A
defines methods on the component class that handles the event
3
Q
What is the naming convention for custom event handlers?
A
onXxx, where Xxx is the name of the event.
4
Q
What are some custom events a component may expose?
A
onBlur, onFocus, onSubmit, etc.