New Sep 2, 2026

What is the difference between link wrapping and 'use client' in Next.js?

Libraries, Frameworks, etc. All from Newest questions tagged reactjs - Stack Overflow View What is the difference between link wrapping and 'use client' in Next.js? on stackoverflow.com

Let's suppose we have two scenarios:

  1. Link wrapping

    <Link href="/voice_monitor" passHref legacyBehavior>
      <Button component="a">Go to Voice Monitor</Button>
    </Link>
    
  2. 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)?

Scroll to top