Find client components missing a 'use client' directive

Proprietary

Finds .tsx and .jsx files that use hooks, class components or browser globals and have no 'use client' directive, to review before adopting React Server Components. Files with 'use server' are skipped.

org.openrewrite.react.search.find-missing-use-client-directive
mod run . --recipe=org.openrewrite.react.search.find-missing-use-client-directive

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.