Convert class components to functional components

Proprietary

Converts 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-functional
mod run . --recipe=org.openrewrite.react.refactoring.class-to-functional

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