Open brodycj opened 6 years ago
General (neutral):
Some additional resources from Eric Elliot:
Radical:
let
can and should be replaced with const
in most if not all casesAdditional for React Native:
React.createClass()
(outdated since createClass()
was moved into a separate package)Possibly relevant: https://medium.com/javascript-scene/baby-s-first-reaction-2103348eccdd
Pure functional components:
Using
createReactClass()
function instead of ES6 Component class:createReactClass()
function since it was removed from React 16.xcreateReactClass()
function in React Nativehttps://codeburst.io/when-to-use-component-or-purecomponent-a60cfad01a81Counterpoints:
PureComponent
references:PureComponent
: https://hackernoon.com/react-purecomponent-considered-harmful-8155b5c1d4bcOther reading: