[link] What's the recommended way of using MUI Link with Next.js Link? #30858
Labels
component: link
This is the name of the generic UI component, not the React module!
docs
Improvements or additions to the documentation
nextjs
Current behavior 😯
Currently the way its suggested to integrate MUI Link to NextJS Link component is use the example in
https://github.com/mui-org/material-ui/blob/ec5df5f94f472628103eb1cfbecccc6afc2658bd/examples/nextjs-with-typescript/src/Link.tsx
Expected behavior 🤔
https://stackoverflow.com/a/66228870
This basically, gives the same functionality, without the overhead.
Steps to reproduce 🕹
https://stackoverflow.com/a/66228870
vs
https://github.com/mui-org/material-ui/blob/ec5df5f94f472628103eb1cfbecccc6afc2658bd/examples/nextjs-with-typescript/src/Link.tsx
Context 🔦
What's the recommended way of using Mui Link with NextJs Link.
Your environment 🌎
`npx @mui/envinfo`
.. ``` Don't forget to mention which browser you used. Output from `npx @mui/envinfo` goes here. ```The text was updated successfully, but these errors were encountered: