React Video Reviews

destructing state
Object Literal Property Value Shorthand
  1. Use functional component when no internal state, this makes it easier because there is less code, it’s stateless, simpler to test and not ‘this’ binding
  2. Use small components, it’s easier to read, debug, manipulate and reuse throughout the program
  3. Know how to use ‘this’:
binding in render
Arrow functions
binding in the constructor
Arrow function in a class
this.setState as a function
Prop-types
You can view the component tree hierarchy
View props, state, parents and source of a component
Analyse the performance
Get a detailed report of rendering
  1. Don’t overload the DOM
  2. Every component should be pure
  3. Every prop should have reference equality
unaccepted as a pure component accepted as a pure component

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store