9.
What is the purpose of the <Link> component in Next.js?
It enables code splitting and lazy loading of components.
<Link> is not a valid component in Next.js.
It allows for server-side rendering of pages.
It is used for client-side navigation between pages.
Correct: D
The <Link> component in Next.js is primarily used for client-side navigation between pages. It allows you to create links that load pages without a full refresh, greatly improving the user experience. When a user clicks on a link created using the <Link> component, Next.js handles the navigation without making a full round-trip request to the server, resulting in faster page transitions. It is the primary and recommended way to navigate between routes in Next.js.