diff --git a/docs/framework/react/guide/custom-link.md b/docs/framework/react/guide/custom-link.md index 5db96a6277..28c9f06038 100644 --- a/docs/framework/react/guide/custom-link.md +++ b/docs/framework/react/guide/custom-link.md @@ -163,11 +163,11 @@ export const CustomLink: LinkComponent = (props) => { ### Mantine example ```tsx -import * as React from "react"; -import { createLink, LinkComponent } from "@tanstack/react-router"; -import { Anchor, AnchorProps } from "@mantine/core"; +import * as React from 'react' +import { createLink, LinkComponent } from '@tanstack/react-router' +import { Anchor, AnchorProps } from '@mantine/core' -interface MantineAnchorProps extends Omit { +interface MantineAnchorProps extends Omit { // Add any additional props you want to pass to the anchor } @@ -175,14 +175,14 @@ const MantineLinkComponent = React.forwardRef< HTMLAnchorElement, MantineAnchorProps >((props, ref) => { - return ; -}); + return +}) -const CreatedLinkComponent = createLink(MantineLinkComponent); +const CreatedLinkComponent = createLink(MantineLinkComponent) export const CustomLink: LinkComponent = ( - props + props, ) => { - return ; -}; -``` \ No newline at end of file + return +} +```