Migrate deprecated lifecycles where it is safe

Proprietary

Moves componentWillMount to a state field or componentDidMount, and a guarded componentWillReceiveProps to componentDidUpdate, when the move does not change what the component does. Everything else is left for the UNSAFE_ prefix.

org.openrewrite.react.17.migrate-deprecated-lifecycles
mod run . --recipe=org.openrewrite.react.17.migrate-deprecated-lifecycles

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