Explore common beginner mistakes with React and learn how to fix them. Topics include evaluating with zero, mutating state, not generating keys, missing whitespace, accessing state after changing it, returning multiple elements, missing style brackets, and using async functions in effects.

28m read timeFrom joshwcomeau.com
Post cover image
Table of contents
IntroductionLink to this heading Evaluating with zeroLink to this heading Mutating stateLink to this heading Not generating keysLink to this heading Missing whitespaceLink to this heading Accessing state after changing itLink to this heading Returning multiple elementsLink to this heading Flipping from uncontrolled to controlledLink to this heading Missing style bracketsLink to this heading Async effect functionLink to this heading Developing an intuition
6 Comments

Sort: