react-events Flashcards

1
Q

How to you pass an event handler to a React component?

A

You add a function to the component declaration and then can add it to the properties of the component

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the naming convention for event handlers?

A

function handle+name () {
}.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are some custom event handler props a component may wish to define?

A

onCustomClick/hover/dblClick/unhover/etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the naming convention for custom event handler props?

A

on+name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly