Convert class components to functional components
ProprietaryConverts simple render-only class components to functional components. A PureComponent becomes a memo-wrapped function so it keeps skipping renders for equal props, and export is preserved.
org. openrewrite. react. refactoring. class-to-functionalmod run . --recipe= org. openrewrite. react. refactoring. class-to-functionalInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.