react-tooling
Debugging, build analysis, and ecosystem tools.
Installation
Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.
Voir la source ↗GuidesInstructions
React Tooling
Priority: P2 (OPTIONAL)
Tools for analysis and debugging.
Implementation Guidelines
- DevTools: Use "Highlight Updates" to spot re-renders.
-
Debugger:
useDebugValuefor custom hooks. -
Performance:
why-did-you-renderto catch wasted renders. -
Bundle:
source-map-explorerorbundle-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,
});
}
Exemples
Consultez les exemples du dépôt source.
Voir la source ↗Historique source
- Date d’indexation
- 2026-01-20
- Mise à jour de l’index
- 2026-01-26
- Branch
- main
Les dates concernent ce répertoire. Consultez le dépôt pour l’historique du code.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!