Media Summary: TLDR; don't mutate state directly. Always use setState when updating a piece of state. Also, pass a function when updating state ... We hear a lot about "clean" code principles and
10 React Antipatterns To Avoid - Detailed Analysis & Overview
TLDR; don't mutate state directly. Always use setState when updating a piece of state. Also, pass a function when updating state ... We hear a lot about "clean" code principles and