Safely removes <a> from Link components imported from the next/link module or adds the legacyBehavior prop on the component level.
Example
Before
jsx
After
jsx
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:
Safely removes <a> from Link components imported from the next/link module or adds the legacyBehavior prop on the component level.
jsx
jsx
Build your own codemod and share it with the community.