Remove unnecessary React imports

Proprietary

Removes the default import React from 'react' when React is only used for JSX, and the automatic JSX runtime is explicitly enabled, or the file contains no JSX.

org.openrewrite.react.17.update-react-imports

Optional

Set to true only when the project uses the automatic JSX transform. Without this assertion, imports in files containing JSX are preserved.

mod run . --recipe=org.openrewrite.react.17.update-react-imports

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