Migrate deprecated lifecycles where it is safe
ProprietaryMoves 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-lifecyclesmod run . --recipe= org. openrewrite. react.17. migrate-deprecated-lifecyclesInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.