diff --git a/packages/react-router-dom/docs/api/Link.md b/packages/react-router-dom/docs/api/Link.md index 734e28f2a9..3b78716501 100644 --- a/packages/react-router-dom/docs/api/Link.md +++ b/packages/react-router-dom/docs/api/Link.md @@ -87,7 +87,7 @@ let anchorRef = React.createRef() If you would like utilize your own navigation component, you can simply do so by passing it through the `component` prop. ```jsx -const FancyLink = React.forwardRef((props, ref) => ( +const FancyLink = React.forwardRef(({ navigate, ...props }, ref) => ( 💅 {props.children} ))