React 17 to 18 code changes
ProprietaryMigrate a React 17 codebase to React 18 without changing dependency versions: replace ReactDOM.render with createRoot, remove unstable_batchedUpdates wrappers, replace unmountComponentAtNode, remove render callbacks, and declare children on props types for @types/react 18.
org. openrewrite. react. migrate. react-17-to-18-code-changesmod run . --recipe= org. openrewrite. react. migrate. react-17-to-18-code-changesInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.