Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 981 Bytes

react.md

File metadata and controls

24 lines (18 loc) · 981 Bytes
 ._____     _       _       
 |_   _| __(_)_   _(_) __ _
   | || '__| \ \ / / |/ _` |
   | || |  | |\ V /| | (_| |
   |_||_|  |_| \_/ |_|\__,_|

React

Which props are auto-handled by React?

ref, key

T/F: If shouldComponentUpdate returns false, its props are not updated

False. See this tweet

Why does React use className instead of class?

"Question to those who want to see

become
: is it not confusing that this breaks destructuring? https://t.co/HRKR3IkgRO" - Dan Abramov on Twitter:

TODO: phrase with question

JSX will automatically remove whitespace on the beginning and ending of a line as well as blank lines. It also condenses blank lines in the middle of string literals into one space. https://mxstbr.blog/2017/02/react-children-deepdive/