In v7 the react-router and react-router-dom packages are combined so this codemod import everything directly from "react-router" except for the RouterProvider exception.
Before
ts
After
ts
Explore community-led codemods to migrate, optimize, and transform your codebase.
Build your own codemod and share it with the community.
No description available
The easiest way to run this codemod without installing anything globally:
In v7 the react-router and react-router-dom packages are combined so this codemod import everything directly from "react-router" except for the RouterProvider exception.
ts
ts
Build your own codemod and share it with the community.