Let's suppose we have two scenarios:
Link wrapping
<Link href="/voice_monitor" passHref legacyBehavior> <Button component="a">Go to Voice Monitor</Button> </Link>use client
'use client'; import Link from 'next/link'; import { Button } from '@mantine/core';<Button component={Link} href="/voice_monitor">Go to Voice Monitor</Button>
Is one better for browser performance than the other (the code executes on the server, the browser won't have to download, parse, or execute the JavaScript bundle for the page)?