Codemod verified
Regularly tested and maintained by our engineers and codemod expert community.
migration
by
 Codemod
Codemod
Next/13/New Link
Last update
Jan 10, 2025
Safely removes <a> from Link components imported from the next/link module or adds the legacyBehavior prop on the component level.
Example
Before
export default function Component() {return (<Link href="/a"><a>Anchor</a></Link>);}
After
export default function Component() {return <Link href="/a">Anchor</Link>;}
Build custom codemods
Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community