Remove unnecessary React imports
ProprietaryRemoves 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-importsOptional
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-importsInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.