Skip to content

Commit

Permalink
Update docs suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
mj12albert committed Oct 20, 2023
1 parent dbe2a4a commit bdbd6e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/data/material/guides/routing/routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit bdbd6e6

Please sign in to comment.