· react
You really, really, really don't need an effect! I swear!
Before you write another useEffect, ask one question: is this syncing with an external system? If not, there's a better way.
Before you write another useEffect, ask one question: is this syncing with an external system? If not, there's a better way.
After running a 30-day React deep-dive, these are the 10 patterns that changed how I write components, manage state, and think about performance.
Skeleton screens break every time you touch the UI. Here's how to build one that reads the DOM and keeps itself in sync automatically.
I started naming my useEffect functions about a year ago. It changed how I read components, how I debug them, and eventually how I structure them.