Next.js
migration
byCodemod

Next/13/New Link

/icons/calendar.svg

Last update

Jul 24, 2024

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

background illustrationGet Started Now