eslint-plugin-react-hooks

The official ESLint plugin that checks React code for Rules of Hooks violations and incomplete dependency arrays.

In more detail

Its rules-of-hooks rule flags hooks called conditionally, and exhaustive-deps flags values missing from dependency arrays. Recent versions also include React Compiler checks, so code the compiler cannot optimise is reported.

Related terms

Taught in

References