- debugsy
- blog
Articles on debugging React
Articles on debugging React apps: render loops, re-renders, effects and logs, with the exact error messages and the fixes, from the makers of debugsy.
- how to · How to debug a Next.js app, server and browserDebug a Next.js app with --inspect, Chrome DevTools or VS Code: server and browser breakpoints, where logs show up, and why breakpoints stay gray.
- how to · How to use React DevTools, tab by tabHow to use React DevTools: install the extension, inspect and edit components, set up the Profiler, and fix a Components tab that won't show.
- how to · How to prevent unnecessary re-renders in ReactHow to prevent re-renders in React: measure first, move state down, pass children, use memo with stable props, and know what the Compiler changes.
- what is · React context re-renders: what a value change renders, and how to limit itA React context re-render hits every component that reads the changed value, memo or not. Why a new object value does it, and the fixes.
- how to · How to fix "React Hook useEffect has a missing dependency"React Hook useEffect has a missing dependency means your effect reads a value its array doesn't list. The full message, and the fix for each case.
- how to · Fix the "Too many re-renders" error in ReactToo many re-renders in React means state is set during render. The exact message, the usual causes with fixes, and how to find the component.
- what is · Why your useEffect runs twice, and what to do about ituseEffect runs twice on mount in development because Strict Mode adds a setup and cleanup cycle. Why React does it, how to fix it, and real causes.
- how to · How to debug a React app, from symptom to causeHow to debug a React app: reproduce the bug, read the error, inspect in DevTools, pause with breakpoints, log on purpose, then handle production.
- comparison · How to choose a React logging libraryWhich React logging library to use: plain console, debug, loglevel, pino, consola or debugsy, with what each does in the browser and when to pick it.
- best tools · React JS debugging tools, sorted by what you need to seeReact JS debugging tools sorted by job: components, renders, profiling, breakpoints, network, Next.js and logs, with where each one runs.
- comparison · Choosing a why did you render alternative for ReactA why did you render alternative for React 19, Next.js or Vite: the DevTools Profiler, React Scan, React Render Tracker, a small hook or debugsy.
- what is · How the useEffect dependency array worksThe useEffect dependency array decides when an effect runs again. How React compares it, why objects and functions trip it up, and how to fix that.
- what is · When does React re-render a component?When does React re-render? On a state update, a parent render, a context change or a store change. The rules, small examples and how to avoid extra ones.
- how to · Fix the "Maximum update depth exceeded" error in ReactMaximum update depth exceeded in React means a state update keeps retriggering itself. Find the component, the value that changes and the fix.