← All recipes
Moderne licensed

Find React hook usage

Recipe IDorg.openrewrite.react.search.find-hook-usageArtifact@openrewrite/recipes-react

Finds all React hook usages including built-in and custom hooks, and detects Rules of Hooks violations.

Single recipeProprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe org.openrewrite.react.search.find-hook-usage

If the recipe isn’t available locally, install it with:

mod config recipes npm install @openrewrite/recipes-react