Find React hook usage
Recipe ID
org.openrewrite.react.search.find-hook-usageArtifact@openrewrite/recipes-reactFinds 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-usageIf the recipe isn’t available locally, install it with:
mod config recipes npm install @openrewrite/recipes-react