Modifying state directly instead of using setState()
![]()
A critical React mistake is modifying state directly rather than using the proper setState() method (for class components) or state setter function (for functional components). The Problem Why this is….
