Frontend Track · Starter Track

Frontend Engineering

Modern browser architecture: server vs. client rendering, component composition, accessible UI design systems, and Core Web Vitals.

Rendering Strategies (SSG, SSR & CSR)

Next.js

Pre-render static content at build time (SSG) for speed, render per-request on the server (SSR) for dynamic/private HTML, and keep rich interactivity in Client Components.

Engineering AnalogyPre-printed handbooks (SSG) vs. custom-printed reports (SSR) vs. live calculator in your hand (CSR).
  • Keep Server Components as the default; opt into 'use client' only where state or browser APIs are needed.
  • Colocate shared headers and navigation in Root Layouts.

State Colocation & Server State

Architecture

Separate UI state (open drawers, active tabs), URL state (search queries, filters), and cached server data instead of dumping everything into one global store.

Engineering AnalogyKeeping local variables inside functions instead of polluting global scope.
  • Sync filters/tabs to URL params when views should be shareable.
  • Persist lightweight user preferences in localStorage safely after mount.

Design Tokens & Accessible UI

Design Systems

Define semantic CSS variables for surfaces, ink contrast, and accents once so light/dark themes, keyboard navigation, and focus rings work consistently across every route.

Engineering AnalogyTyped interfaces for visual styling—change one token, update every component safely.
  • Verify WCAG contrast ratios, semantic landmarks, and Escape/keyboard shortcuts.
  • Use progressive disclosure (drawers, accordions) to avoid overwhelming readers.

Core Web Vitals & Asset Discipline

Performance

Optimize Largest Contentful Paint (LCP), Interaction to Next Paint (INP), and Cumulative Layout Shift (CLS) by keeping client JS lean and reserving space for dynamic elements.

Engineering AnalogyTrimming startup dependencies and avoiding blocking I/O on the main UI thread.
  • Load fonts with `next/font` to prevent layout shift.
  • Avoid shipping massive libraries to the browser when server rendering or lightweight helpers suffice.
Want to expand the Frontend track?

Add subpages under src/app/frontend/<subpage>/page.tsx and register them in src/data/tracks.ts.

Explore AI Track →All Tracks