React Tooling

Debugging, build analysis, and ecosystem tools.

majiayu000 Updated 567 repo stars

File contents

React Tooling

Priority: P2 (OPTIONAL)

Tools for analysis and debugging.

Implementation Guidelines

  • DevTools: Use "Highlight Updates" to spot re-renders.
  • Debugger: useDebugValue for custom hooks.
  • Performance: why-did-you-render to catch wasted renders.
  • Bundle: source-map-explorer or bundle-visualizer.
  • Linting: eslint-plugin-react-hooks (Errors) + react-refresh.
  • Strict Mode: Enable for double-invoke checks (effects/reducers).

Code

// Debugging Hooks
useDebugValue(isOnline ? 'Online' : 'Offline');

// why-did-you-render
if (process.env.NODE_ENV === 'development') {
  const whyDidYouRender = require('@welldone-software/why-did-you-render');
  whyDidYouRender(React, {
    trackAllPureComponents: true,
  });
}

majiayu000/claude-skill-registry-data/tree/main/development/tooling-hoangnguyen0403-agent-skills-standar-6 commit 0689363fde

Frequently asked questions

npx skillmds@latest add majiayu000/react-tooling