Mmanishjha-04

react-router/6/navlink-exact-to-end

No description available

react-routermigrationv6
Public
0 executions

Run locally

npx codemod react-router/6/navlink-exact-to-end

This codemod replaces the deprecated exact prop in NavLink with the modern end prop. React Router v6 and beyond use end to indicate that the path should match exactly, making this a necessary update for compatibility with newer versions.

Before

tsx

After

tsx

Ready to contribute?

Build your own codemod and share it with the community.