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
2
Q
Why double curlies?
A
3
Q
What is higher order components?
A
4
Q
What is a SyntheticEvent?
A
React wraps all events with SyntheticEvents so they work cross-browser