React JS Flashcards

1
Q

Should you bind DOM events (ie. onClick) to components or elements?

A

Elements. Because Components don’t render as a single DOM element (usually), elements do. is bad is good with onClick within that

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

Why double curlies?

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

What is higher order components?

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

What is a SyntheticEvent?

A

React wraps all events with SyntheticEvents so they work cross-browser

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