-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[examples] Add Next.js 13 compatible version of Link adapter #38797
Conversation
Netlify deploy previewBundle size report |
@mnajdova Do you think we should keep the previous Link adapter components and maybe rename to |
|
||
The first version of the adapter is the [`NextLinkComposed`](https://github.com/mui/material-ui/blob/-/examples/material-ui-nextjs-ts/src/Link.tsx) component. | ||
This component is unstyled and only responsible for handling the navigation. | ||
The prop `href` was renamed `to` to avoid a naming conflict. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be preferable to cut this line or rephrase it to avoid confusion—the context for it being "renamed" is not present here, so a casual user might not know what to make of it.
1d3877c
to
bdbd6e6
Compare
This PR adds the
Link
adapter components for Next.js to the app router example repo.In Next.js 13 it is no longer required to manually provide
<a>
as a child to Next'sLink
(vercel/next.js#36436)(The changes here are extracted from #38243)