{"id":18706,"library":"react-compiler-healthcheck","title":"react-compiler-healthcheck","description":"A standalone health check script for React applications to detect violations of the Rules of React that could cause issues with the React Compiler (formerly React Forget). v1.0.0 is the initial release, distributed via npx, designed to be run once per codebase. It scans source files for patterns that break the Rules of React (e.g., mutating state, conditional hooks) and reports them. Unlike eslint-plugin-react-hooks which lints during development, this is a separate, one-time analysis tool. Maintained by the React team at Meta. Release cadence is low; expect minor updates for bug fixes.","status":"active","version":"1.0.0","language":"javascript","source_language":"en","source_url":"https://github.com/facebook/react","tags":["javascript"],"install":[{"cmd":"npm install react-compiler-healthcheck","lang":"bash","label":"npm"},{"cmd":"yarn add react-compiler-healthcheck","lang":"bash","label":"yarn"},{"cmd":"pnpm add react-compiler-healthcheck","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"This package is intended to be run via npx, not imported directly in code.","symbol":"default (npx command)","correct":"npx react-compiler-healthcheck@latest"}],"quickstart":{"code":"npx react-compiler-healthcheck@latest","lang":"javascript","description":"Running the health check script in your project root to detect React Compiler violations."},"warnings":[{"fix":"Review each warning manually and consider adjusting code to be more explicit.","message":"The tool may report false positives for patterns that are safe but structurally similar to violations.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Run both eslint-plugin-react-hooks and this health check for comprehensive coverage.","message":"Does not replace eslint-plugin-react-hooks; both can be used complementarily.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Use 'npx react-compiler-healthcheck@latest' instead.","cause":"Running the tool without npx, e.g., calling it as a standalone command.","error":"Error: Cannot find module 'react-compiler-healthcheck'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}