M

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

How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

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.