Replace defaultProps with default parameter values
ProprietaryConverts Component.defaultProps = {...} to ES6 default parameter values in function components. defaultProps for function components is deprecated in React 19.
org. openrewrite. react.19. replace-default-propsmod run . --recipe= org. openrewrite. react.19. replace-default-propsInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.