React: The Most Common Mistakes in 2023 I'm presenting this talk at @kc_dc...


React: The Most Common Mistakes in 2023

I'm presenting this talk at @kc_dc in July!

The list:

State:
Needless state
Global state overuse
Syncing state via useEffect
Reading state after setting it
Multiple setState calls in a row
Putting state in the wrong spot
Storing related data in separate pieces of state

Http:
Not caching
Fetching in useEffect
Not using modern libraries

Workflow:
Not using a framework
Not using Tailwind
Not using TypeScript
Not mocking
Ineffective testing
Not using custom dev tools
Poor folder structure
Few/poor reusable components
Weak ESLint rules
Weak error handling

What else would you put on this list?
@kc_dc Oh, and if you’re interested in @kc_dc, use this discount code for 10% off a ticket!

FriendOfCoryHouse

View original on X