From bdbd6e65ad98ec4db313b538068854831312dce0 Mon Sep 17 00:00:00 2001 From: Albert Yu Date: Fri, 20 Oct 2023 18:06:41 +0800 Subject: [PATCH] Update docs suggestion --- docs/data/material/guides/routing/routing.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/data/material/guides/routing/routing.md b/docs/data/material/guides/routing/routing.md index f7c07dea85be11..c825977917843d 100644 --- a/docs/data/material/guides/routing/routing.md +++ b/docs/data/material/guides/routing/routing.md @@ -106,8 +106,8 @@ The example repos provide adapter components for the use of [Next.js's Link comp 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. -This is similar to react-router's Link component. +The `href` prop from Next.js's Link is renamed to `to` in order to distinguish from `@mui/material/Link`'s `href` prop. +The resulting API is similar to react-router's Link component: ```tsx import Button from '@mui/material/Button';