Single Page Applications (SPAs) use client-side routing to switch views instantly without full browser page reloads.
⊞Code Example
import Link from 'next/link';
export function NavigationBar() {
return (
<nav className="flex gap-4">
<Link href="/html" className="text-emerald-400 hover:underline">HTML Lessons</Link>
<Link href="/css" className="text-emerald-400 hover:underline">CSS Lessons</Link>
<Link href="/react" className="text-emerald-400 hover:underline">React Lessons</Link>
</nav>
);
}
