Skip to main content
MockAttempt App Icon

Install MockAttempt App

Launch full-screen from your iPhone / iPad Home Screen

  1. Step 1: Tap the Safari Share icon โ†‘ at the bottom of your screen.
  2. Step 2: Scroll down and tap โ€œAdd to Home Screenโ€, then tap Add.
Frontend & React Ecosystem Beginner to Job-Ready React Engineer ๐Ÿ“… Weekend-Only Live Batches (Satโ€“Sun โ€ข 2h/Day) ๐Ÿ‘จโ€๐Ÿ’ป 100% Working IT Professional Trainers Code: REAC
Complete React.js Developer Course (with HTML5, CSS3, Tailwind, JS & TypeScript) Official Course Logo

Complete React.js Developer Course (with HTML5, CSS3, Tailwind, JS & TypeScript) 10 Weeks โ€ข Weekend Live (Satโ€“Sun โ€ข 2h/Day) + UI Coding Lab Live Weekend Cohort • 10 Modules (231 Topics) • HTML5 & Semantic A11y, CSS3, Flexbox & Grid, Tailwind CSS, JavaScript ES6+ & Async/DOM, TypeScript 5 (Strict) • 30-Day 100% Upgrade Credit

Zero missing prerequisites: learn HTML5, CSS3 Flexbox/Grid, Tailwind CSS, JavaScript ES6+, and TypeScript 5 right inside the course before mastering React, Hooks, Router, RHF + Zod, Redux Toolkit, TanStack Query, Next.js fundamentals, Vitest, and live Vercel deployment.

โ˜…โ˜…โ˜…โ˜…โ˜… 4.95/5 Verified Cohort Rating โ€ข โœ“ Attend 1st Weekend Class Free โ€ข โœ“ Dual QR/Barcode Credentials (MAA + MAA-INT)
10 Modules
231 Live Topics
462 Hands-On Labs
231 Mock Tests
231 AI Interviews
10 + 1 Module + Client
Semantic HTML5 & A11y Logo Semantic HTML5 & A11y CSS3 & Tailwind CSS Logo CSS3 & Tailwind CSS Modern JavaScript ES6+ Logo Modern JavaScript ES6+ TypeScript 5 Logo TypeScript 5 React 19, Hooks & Suspense Logo React 19, Hooks & Suspense Next.js 15 App Router Logo Next.js 15 App Router Vitest & Playwright E2E Logo Vitest & Playwright E2E Git, CI & Edge Deployment Logo Git, CI & Edge Deployment +2 More Tools โ†“
Already Enrolled in REAC Candidates Already Enrolled in React.js 19, TypeScript & Next.js (REAC)
Weekend-Only Cohort (Satโ€“Sun โ€ข 2h/Day)

Tanvi Chitnis

โœ“ Enrolled

๐Ÿ“ Mumbai, India โ€ข UI Designer โ†’ React 19, Hooks & Next.js

React.js 19, TypeScript & Next.js Logo Enrolled: React.js 19, TypeScript & Next.js (REAC)

๐Ÿ“… Weekend Satโ€“Sun (6โ€“8 PM IST)

ID: MAA-REAC-116 Enrolled โ€ข 2d ago

Abhishek Tripathi

โœ“ Enrolled

๐Ÿ“ Bengaluru, India โ€ข WordPress Dev โ†’ TypeScript, Redux & TanStack

React.js 19, TypeScript & Next.js Logo Enrolled: React.js 19, TypeScript & Next.js (REAC)

๐Ÿ“… Weekend Satโ€“Sun (4โ€“6 PM IST)

ID: MAA-REAC-117 Enrolled โ€ข 3d ago

Nandini Krishnan

โœ“ Enrolled

๐Ÿ“ Dublin, Ireland โ€ข Frontend Graduate โ†’ Modern React Dashboards

React.js 19, TypeScript & Next.js Logo Enrolled: React.js 19, TypeScript & Next.js (REAC)

๐Ÿ“… Weekend Satโ€“Sun (3โ€“5 PM IST โ€ข IE Morning)

ID: MAA-REAC-118 Enrolled โ€ข 5d ago
Complete React.js Developer Course (with HTML5, CSS3, Tailwind, JS & TypeScript) Logo REAC โ€ข Satโ€“Sun Live
Free 1st Demo
All-Inclusive Fee (Incl. 18% GST โ€ข 0% Salary Cut)
$43 USD All-Incl.

Net: $36 + 18% GST ($7 ) โ€ข ~$1 /Hr

โšก $21 Lock + 1 ร— $21

$21 Seat Lock + 1 Milestone Installments of $21 (0% Interest โ€” All-Inclusive)

๐Ÿ”„ 30-Day 100% Tuition Credit Upgrade Bridge ($43 Credit)

Deduct 100% of your $43 fee when upgrading to Frontend Developer โ€“ Industry-Ready Career Program (FDCP) within 30 days of batch start. FDCP โ†’

Attend 1st Weekend Class Free & Get Roadmap:

โœ“ Live English Classes (10 Weeks โ€ข Weekend Live (Satโ€“Sun โ€ข 2h/Day) + UI Coding Lab) โ€ข โœ“ Instant Syllabus PDF

Structured Month-by-Month Progression

3-Month Learning Roadmap (10 Weekly Modules)

Every month concludes with measurable coding competency, a portfolio repository deliverable, and continuous DSA progression.

โš™๏ธ Baseline: HTML5, CSS3, ES2023+, TypeScript 5.x, Vite 5/6, React 18/19, Tailwind CSS, Redux Toolkit 2.x, TanStack Query 5.x & Vitest.
Month 1 Weeks 1โ€“3

Stage 1: Built-In HTML5, CSS3/Tailwind, JavaScript ES6+ & TypeScript 5 Foundations

Complete web, Tailwind CSS, modern JS ES6+ async/DOM, and strict TypeScript 5 foundations tailored for React.

Outcome: Enter React with rock-solid layout, ES6+, and TypeScript fluency.

Deliverable: Responsive Tailwind Landing Page + Typed ES6/TS SDK.

DSA Focus: JS Arrays, Strings, Closures, Debounce & Promises.

Month 2 Weeks 4โ€“6

Stage 2: Core React, Hooks, Validated Forms, Routing & REST APIs

Vite + React, JSX, Props/State, Hooks, React Hook Form + Zod, React Router, Protected Routes, and Axios.

Outcome: Build multi-page authenticated TypeScript + React dashboards.

Deliverable: React + TypeScript Employee Management Dashboard.

DSA Focus: Sortable Data Tables, Pagination & OTP/Tag Machine Coding.

Month 3 Weeks 7โ€“10

Stage 3: Redux Toolkit, TanStack Query, Next.js Basics, Testing & E-Commerce Capstone

Redux Toolkit, TanStack Query, Compound Components, Virtualization, Security, Core Web Vitals, Vitest/RTL, Next.js App Router basics, and Vercel deployment.

Outcome: Architect, test, and deploy a production React E-Commerce application.

Deliverable: Capstone: Deployed Production React + TypeScript + Redux E-Commerce Storefront.

DSA Focus: Autocomplete, Accessible Modal, Infinite Scroll & Virtualized List Machine Coding.

โšก Continuous 6-Month Coding Track โ€ข Separate Problem Tracking

40 Curated JS DSA & Frontend Machine-Coding Problems Across 9 Core Areas

Practised continuously from Month 1 to Month 6 (Easy โ†’ Medium โ†’ Selected Hard) with constraints, sample I/O, Big-O analysis, and JavaScript ES6+ & React/TypeScript reference solutions and test cases inside the Student Coding Lab.

Arrays

4 Problems โ€ข M1

Strings

4 Problems โ€ข M1

Objects, Map & Set

4 Problems โ€ข M1

JS Polyfills & Deep Utils

4 Problems โ€ข M1

Closures & Functions

3 Problems โ€ข M2

Promises & Async

2 Problems โ€ข M2

Two Pointers

3 Problems โ€ข M2

Sliding Window

1 Problems โ€ข M2

React Machine Coding

15 Problems โ€ข M2

Structured Weekly Delivery

Recommended Weekly Training & Practice Plan

Live Working-Pro concept & architecture sessions 4 hrs/week
Live coding & debugging demonstrations 2 hrs/week
Hands-on assignments & Coding Lab practice 3 hrs/week
Weekly MCQ, Spoken AI Viva & code review 2 hrs/week
Academic Passing Threshold: Minimum 70% in theoretical assessments, 70% in coding/practical assessments, 70% in project evaluations, 100% mandatory assignment submission, and live code defense.

โœ“ Included in This 6-Month Program

  • โœ“Built-In Stage 1: Semantic HTML5, CSS3 Flexbox/Grid, Responsive UI & Tailwind CSS
  • โœ“Built-In Stage 1: Modern JavaScript ES6+, Closures, Event Loop, Async/Await, Fetch & DOM
  • โœ“Built-In Stage 1: Complete Strict TypeScript 5 (Interfaces, Unions, Narrowing, Generics, Utility Types)
  • โœ“Core React 18/19, Hooks, Custom Hooks, React Hook Form + Zod, React Router & Axios
  • โœ“Redux Toolkit, RTK Query, TanStack Query, Compound Components, Portals, Virtualization & Next.js Basics
  • โœ“Frontend Security, Core Web Vitals, Vitest + React Testing Library, 40 Machine-Coding Challenges & Live Deployment

โœ• Not Part of Core 6-Month Syllabus

Published transparently so students compare scope honestly before enrolling:

  • โ€”Angular enterprise framework (covered in ANGU & FDCP)
  • โ€”Java / Spring Boot backend development (covered in JBCP)
๐Ÿ“ Test Yourself Live โ€ข REAC OA Question Topic: Browser Rendering Architecture (DOM and CSSOM) โ†’

In Web & HTML5, what is the primary production engineering use case of 'Browser Rendering Architecture (DOM and CSSOM)'?

โœ“ Correct Answer: A

Placing `<script type="module" src="...">` (deferred by default) so JavaScript never blocks first contentful paint.

2 Free Timed 50-MCQ Exams / Topic / Day Practice 231 REAC Mocks โ†’
๐ŸŽ™๏ธ MockAttempt-AI v2.5 Viva 2 Free / Topic / Day

Rehearse Spoken REAC Technical Interviews Aloud

Practice L1/L2 engineering questions across all 231 REAC topics. Our AI Interviewer speaks questions aloud and scores your spoken answer across Technical Depth, Clarity, Edge Cases & Confidence.

100% Studentโ€“Trainer Syllabus & Next-Topic Sequence Transparency

Detailed Module & Topic-Wise Syllabus Inspector โ€” Zero-to-Expert Subtopics

Every module and topic lists its exact technical subtopics, hands-on code labs, Mock Tests, MockAttempt AI interviews, and explicit What Topic Is Next โ†’ progression so enrolled students and trainers always stay synchronized from Day 1 to Expert mastery.

Download Syllabus PDF
๐Ÿ’Ž Why This Curriculum Justifies Every Rupee โ€ข Zero-to-Expert Guarantee

Complete Core-to-Production Engineering Track (10 Modules โ€ข 231 Live Topics โ€ข 1848+ Subtopics)

Builds rock-solid fluency from Day-1 syntax and memory mechanics to testing, packaging, optimization, and live production delivery across 111 hours (~โ‚น36/hr, ~โ‚น25/topic).

1,848+ Technical Subtopics ~$1 / Guided Hour ~$1 / Live Topic
Modules 1โ€“3 79 Topics โ€ข 632 Subtopics

Month 1 โ€“ Stage 1: Built-In HTML5, CSS3/Tailwind, JavaScript ES6+ & TypeScript 5 Foundations (Weeks 1โ€“3)

Modules 4โ€“6 66 Topics โ€ข 528 Subtopics

Month 2 โ€“ Stage 2: Core React, Hooks, Validated Forms, Routing & REST APIs (Weeks 4โ€“6)

Modules 7โ€“10 86 Topics โ€ข 688 Subtopics

Month 3 โ€“ Stage 3: Redux Toolkit, TanStack Query, Next.js Basics, Testing & E-Commerce Capstone (Weeks 7โ€“10)

Module Learning & Hands-On Objectives

โœ“ Author semantic, accessible HTML5 markup that translates cleanly into valid React JSX without nesting/hydration bugs.
โœ“ Build responsive 1D/2D layouts using CSS3 Flexbox, CSS Grid, and mobile-first Tailwind CSS utilities (including Dark Mode & focus-visible states).
Guide โ†’

HTML parser -> DOM tree, CSS parser -> CSSOM tree, Render Tree construction, Layout (Reflow), Paint, and Composite layers, `<script defer>` vs `async`

Subtopics Covered (8):
  • HTML parser -> DOM tree
  • CSS parser -> CSSOM tree
  • Render Tree construction
โ†’ What Topic Is Next: Next Topic 1.2: HTML5 Introduction and Document Declaration
Guide โ†’

`<!DOCTYPE html>` standards mode vs quirks mode, evolution to living HTML5 standard, W3C markup validation

Subtopics Covered (8):
  • `<!DOCTYPE html>` standards mode vs quirks mode
  • Evolution to living HTML5 standard
  • W3C markup validation
โ†’ What Topic Is Next: Next Topic 1.3: HTML Document Structure and Head Metadata
Guide โ†’

`<html lang="en">`, `<meta charset="UTF-8">`, `<meta name="viewport" content="width=device-width, initial-scale=1.0">`, `<title>`, favicons, OpenGraph tags

Subtopics Covered (8):
  • `<html lang="en">`
  • `<meta charset="UTF-8">`
  • `<meta name="viewport" content="width=device-width
โ†’ What Topic Is Next: Next Topic 1.4: HTML Elements (Block, Inline and Void Elements)
Guide โ†’

Block-level flow (`p`, `section`, `ul`) vs phrasing inline (`span`, `a`, `strong`) vs self-closing void elements (`img`, `input`, `br`, `hr`, `meta`, `link`), conten...

Subtopics Covered (8):
  • Block-level flow (`p`
  • `section`
  • `ul`) vs phrasing inline (`span`
โ†’ What Topic Is Next: Next Topic 1.5: Text Formatting and Semantic Phrasing
Guide โ†’

Heading hierarchy `<h1>`โ€“`<h6>` (one logical `<h1>` per view), `<p>`, `<strong>` vs `<b>`, `<em>` vs `<i>`, `<mark>`, `<code>`, `<pre>`, `<blockquote>`, `<time datet...

Subtopics Covered (8):
  • Heading hierarchy `<h1>`โ€“`<h6>` (one logical `<h1>` per view)
  • `<p>`
  • `<strong>` vs `<b>`
โ†’ What Topic Is Next: Next Topic 1.6: Links and Navigation Anchors
Guide โ†’

`<a href>`, relative vs absolute URLs, in-page fragment skip links (`#main-content`), `mailto:` / `tel:`, `target="_blank"` with `rel="noopener noreferrer"`, descrip...

Subtopics Covered (8):
  • `<a href>`
  • Relative vs absolute URLs
  • In-page fragment skip links (`#main-content`)
โ†’ What Topic Is Next: Next Topic 1.7: Images and Responsive Image Attributes
Guide โ†’

`<img src alt width height>`, meaningful `alt` vs decorative `alt=""`, preventing CLS layout shift with explicit `width`/`height`, `loading="lazy"`, `decoding="async...

Subtopics Covered (8):
  • `<img src alt width height>`
  • Meaningful `alt` vs decorative `alt=""`
  • Preventing CLS layout shift with explicit `width`/`height`
โ†’ What Topic Is Next: Next Topic 1.8: Lists (Ordered, Unordered and Description Lists)
Guide โ†’

`<ul>` (unordered navigation/features), `<ol>` (`start`, `reversed` step sequences), `<dl>` / `<dt>` / `<dd>` key-value specification pairs, nested lists

Subtopics Covered (8):
  • `<ul>` (unordered navigation/features)
  • `<ol>` (`start`
  • `reversed` step sequences)
โ†’ What Topic Is Next: Next Topic 1.9: Accessible HTML Tables
Guide โ†’

`<table>`, `<caption>`, `<thead>`, `<tbody>`, `<tfoot>`, `<th scope="col|row">`, `colspan`/`rowspan`, why tables are strictly for tabular data (never page layout!)

Subtopics Covered (8):
  • `<table>`
  • `<caption>`
  • `<thead>`
โ†’ What Topic Is Next: Next Topic 1.10: Flexbox Container and Flex Items
Guide โ†’

`display: flex` vs `inline-flex`, main axis vs cross axis mental model, `gap` property (replaces messy margin hacks!)

Subtopics Covered (8):
  • `display: flex` vs `inline-flex`
  • Main axis vs cross axis mental model
  • `gap` property (replaces messy margin hacks!)
โ†’ What Topic Is Next: Next Topic 1.11: Flex Direction (row, column and reverse)
Guide โ†’

`flex-direction: row | column | row-reverse | column-reverse`, how switching to `column` swaps main and cross axes! Accessibility tab-order warning on `*-reverse`

Subtopics Covered (8):
  • `flex-direction: row | column | row-reverse | column-reverse`
  • How switching to `column` swaps main
  • Cross axes! Accessibility tab-order warning on `*-reverse`
โ†’ What Topic Is Next: Next Topic 1.12: Flexbox Alignment (justify-content, align-items, align-self)
Guide โ†’

Main-axis `justify-content` (`flex-start`, `center`, `space-between`), cross-axis `align-items` (`stretch`, `center`, `baseline`), per-item `align-self`, auto margin...

Subtopics Covered (8):
  • Main-axis `justify-content` (`flex-start`
  • `center`
  • `space-between`)
โ†’ What Topic Is Next: Next Topic 1.13: Flex Wrapping (flex-wrap and align-content)
Guide โ†’

`flex-wrap: nowrap | wrap`, multi-line row/column `gap`, `align-content` for multi-line flex tracks

Subtopics Covered (8):
  • `flex-wrap: nowrap | wrap`
  • Multi-line row/column `gap`
  • `align-content` for multi-line flex tracks
โ†’ What Topic Is Next: Next Topic 1.14: Flex Sizing (flex-grow, flex-shrink, flex-basis & min-width: 0)
Guide โ†’

`flex: 1` (`1 1 0%`), `flex: 0 0 auto` (`shrink-0` icons!), and the critical `min-width: 0` fix when truncated text inside a flex item refuses to shrink!

Subtopics Covered (8):
  • `flex: 1` (`1 1 0%`)
  • `flex: 0 0 auto` (`shrink-0` icons!)
  • The critical `min-width: 0` fix when truncated text inside a flex item refuses to shrink!
โ†’ What Topic Is Next: Next Topic 1.15: CSS Grid Container and Grid Items
Guide โ†’

2D layout control (rows AND columns simultaneously) vs 1D Flexbox, `display: grid`, explicit vs implicit grid tracks

Subtopics Covered (8):
  • 2D layout control (rows
  • Columns simultaneously) vs 1D Flexbox
  • `display: grid`
โ†’ What Topic Is Next: Next Topic 1.16: Grid Structure (Rows, Columns, fr Unit and Gaps)
Guide โ†’

Fractional free-space `1fr` unit, `minmax(0, 1fr)` (prevents wide code/pre blocks from blowing out `1fr` tracks!), `row-gap` / `column-gap` / `gap`

Subtopics Covered (8):
  • Fractional free-space `1fr` unit
  • `minmax(0
  • 1fr)` (prevents wide code/pre blocks from blowing out `1fr` tracks!)
โ†’ What Topic Is Next: Next Topic 1.17: Grid Templates (grid-template-columns, rows and grid-auto-rows)
Guide โ†’

Mixed fixed + flexible tracks, `grid-auto-rows: minmax(8rem, auto)`, CSS `subgrid` awareness for aligning inner card headings/prices across sibling cards

Subtopics Covered (8):
  • Mixed fixed + flexible tracks
  • `grid-auto-rows: minmax(8rem
  • Auto)`
โ†’ What Topic Is Next: Next Topic 1.18: Tailwind CSS Utility-First Architecture
Guide โ†’

Why co-located atomic utility classes eliminate dead CSS growth (`O(1)` production CSS size!) and naming bikeshedding in component frameworks

Subtopics Covered (8):
  • Why co-located atomic utility classes eliminate dead CSS growth (`O(1)` production CSS size!)
  • Naming bikeshedding in component frameworks
  • Production Pitfall Guard (Tailwind CSS Utility-First Architecture)
โ†’ What Topic Is Next: Next Topic 1.19: Tailwind CSS Setup with Vite
Guide โ†’

Installing Tailwind CSS + Vite plugin (`@tailwindcss/vite` / PostCSS), `@import "tailwindcss";` / `@theme` tokens, automatic unused-class tree-shaking in production...

Subtopics Covered (8):
  • Installing Tailwind CSS + Vite plugin (`@tailwindcss/vite` / PostCSS)
  • `@import "tailwindcss"
  • ` / `@theme` tokens
โ†’ What Topic Is Next: Next Topic 1.20: Tailwind Spacing, Typography and Color Tokens
Guide โ†’

4px base spacing scale (`p-4` = `1rem`), `space-y-*`, typographic scale (`text-sm`, `font-semibold`, `tracking-tight`, `leading-relaxed`), semantic slate/sky/emerald...

Subtopics Covered (8):
  • 4px base spacing scale (`p-4` = `1rem`)
  • `space-y-*`
  • Typographic scale (`text-sm`
โ†’ What Topic Is Next: Next Topic 1.21: Tailwind Flexbox and CSS Grid Utilities
Guide โ†’

`flex items-center justify-between gap-4`, `shrink-0`, `min-w-0 flex-1`, `grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6`, `col-span-full`

Subtopics Covered (8):
  • `flex items-center justify-between gap-4`
  • `shrink-0`
  • `min-w-0 flex-1`
โ†’ What Topic Is Next: Next Topic 1.22: Tailwind Responsive Breakpoint Prefixes
Guide โ†’

Mobile-first `sm:` (`640px`), `md:` (`768px`), `lg:` (`1024px`), `xl:` (`1280px`), `2xl:` (`1536px`), container queries `@container` / `@md:`

Subtopics Covered (8):
  • Mobile-first `sm:` (`640px`)
  • `md:` (`768px`)
  • `lg:` (`1024px`)
โ†’ What Topic Is Next: Next Topic 1.23: Tailwind Interactive State Variants
Guide โ†’

`hover:`, `focus-visible:outline-2 focus-visible:outline-sky-600`, `active:scale-98`, `disabled:opacity-50 disabled:cursor-not-allowed`, parent `group` / `group-hove...

Subtopics Covered (8):
  • `hover:`
  • `focus-visible:outline-2 focus-visible:outline-sky-600`
  • `active:scale-98`
โ†’ What Topic Is Next: Next Topic 1.24: Tailwind Dark Mode Implementation
Guide โ†’

Class/selector strategy (`[data-theme="dark"]` / `.dark`), `dark:bg-slate-950 dark:text-slate-100 dark:border-slate-800`, preventing white flash (FOUC) via inline `<...

Subtopics Covered (8):
  • Class/selector strategy (`[data-theme="dark"]` / `.dark`)
  • `dark:bg-slate-950 dark:text-slate-100 dark:border-slate-800`
  • Preventing white flash (FOUC) via inline `<head>` theme script & `localStorage`
โ†’ What Topic Is Next: Next Topic 1.25: Reusable UI Component Design Patterns
Guide โ†’

Designing consistent Button variants (`primary`, `secondary`, `ghost`, `danger`), Input groups, Cards, Badges, and Section Shells; avoiding premature `@apply` bloat...

Subtopics Covered (8):
  • Designing consistent Button variants (`primary`
  • `secondary`
  • `ghost`
โ†’ What Topic Is Next: Module 1 Capstone (Project 1: Complete Responsive Multi-Page Business Website) โ†’ Next Topic 2.1: Array Traversal (for, for...of, entries and forEach)

Design and build a fast, semantic, W3C-valid, mobile-first multi-page digital agency / SaaS business website from scratch using HTML5, CSS3 (Flexbox & Grid), Sass/SCSS variables, Bootstrap 5 / Tailwind CSS utilities, accessible forms, and responsive typography.

โ€ข Multi-page navigation connecting Home (`index.html`), Services (`services.html`), Case Studies / Portfolio (`work.html`), Pricing & FAQ (`pricing.html`), and Contact (`contact.html`).
โ€ข Skip-to-main-content keyboard link, sticky header navigation, and accessible mobile hamburger menu.
โ€ข Pricing comparison section with monthly/annual visual presentation and feature comparison table (`<caption>`, `<th scope>`).
โ€ข Accessible Contact & Project Inquiry form with `<fieldset>`/`<legend>`, explicit `<label for>`, HTML5 validation (`required`, `type="email"`, `type="tel"`, `minlength`), and focus-visible states.
โ€ข Technical SEO head tags (`<title>`, `<meta name="description">`, OpenGraph tags, favicon) and optimized responsive `<img>` dimensions preventing layout shift.

Module Learning & Hands-On Objectives

โœ“ Transform arrays and nested state objects immutably using `map`, `filter`, `reduce`, `find`, `some`, `every`, destructuring, and spread.
โœ“ Understand lexical closures, stale-closure prevention, browser Event Loop microtasks, `async/await` REST fetching, and DOM event delegation.
Guide โ†’

Index `for`, clean `for (const [idx, item] of arr.entries())` (supports `break`/`continue`/`await`!), vs `.forEach()` (cannot `break` or `await` properly!)

Subtopics Covered (8):
  • Index `for`
  • Clean `for (const [idx
  • Item] of arr.entries())` (supports `break`/`continue`/`await`!)
โ†’ What Topic Is Next: Next Topic 2.2: Array.prototype.map
Guide โ†’

1-to-1 immutable projection returning a new array of identical length, transforming API DTOs into UI view-models, `["1","2"].map(Number)` vs `parseInt` radix trap!

Subtopics Covered (8):
  • 1-to-1 immutable projection returning a new array of identical length
  • Transforming API DTOs into UI view-models
  • `["1"
โ†’ What Topic Is Next: Next Topic 2.3: Array.prototype.filter
Guide โ†’

Immutable subset selection based on boolean predicate, combining search keyword + category + inStock predicates, chaining `.filter(...).map(...)`

Subtopics Covered (8):
  • Immutable subset selection based on boolean predicate
  • Combining search keyword + category + inStock predicates
  • Chaining `.filter(...).map(...)`
โ†’ What Topic Is Next: Next Topic 2.4: Array.prototype.reduce
Guide โ†’

Accumulator folding `(acc, item, index) => nextAcc` with MANDATORY initial value (`0`, `{}`), cart grand totals, `groupBy` / ID lookup dictionary `{ [id]: item }`

Subtopics Covered (8):
  • Accumulator folding `(acc
  • Item
  • Index) => nextAcc` with MANDATORY initial value (`0`
โ†’ What Topic Is Next: Next Topic 2.5: Array.prototype.find and findIndex
Guide โ†’

Short-circuiting first matching element (`find` -> element or `undefined`) and index (`findIndex` -> index or `-1`; ES2023 `findLast`)

Subtopics Covered (8):
  • Short-circuiting first matching element (`find` -> element or `undefined`)
  • Index (`findIndex` -> index or `-1`
  • ES2023 `findLast`)
โ†’ What Topic Is Next: Next Topic 2.6: Array.prototype.some
Guide โ†’

Existential short-circuit check (`true` as soon as AT LEAST ONE item matches; `false` on empty array `[]`)

Subtopics Covered (8):
  • Existential short-circuit check (`true` as soon as AT LEAST ONE item matches
  • `false` on empty array `[]`)
  • Production Pitfall Guard (Array.prototype.some)
โ†’ What Topic Is Next: Next Topic 2.7: Array.prototype.every
Guide โ†’

Universal short-circuit check (`true` iff ALL items satisfy predicate; note vacuous truth `[].every(...) === true`!)

Subtopics Covered (8):
  • Universal short-circuit check (`true` iff ALL items satisfy predicate
  • Note vacuous truth `[].every(...) === true`!)
  • Production Pitfall Guard (Array.prototype.every)
โ†’ What Topic Is Next: Next Topic 2.8: Array.prototype.sort and toSorted (Custom Comparators)
Guide โ†’

Default UTF-16 lexicographical sort trap, numeric `(a, b) => a - b`, locale strings `a.name.localeCompare(b.name)`, mutating `.sort()` vs non-mutating `[...arr].sort...

Subtopics Covered (8):
  • Default UTF-16 lexicographical sort trap
  • Numeric `(a
  • B) => a - b`
โ†’ What Topic Is Next: Next Topic 2.9: Array.prototype.slice (Non-Mutating Subarrays)
Guide โ†’

`arr.slice(start, end)` (`end` is exclusive!), negative indices `slice(-5)`, client-side pagination `items.slice((page - 1) * size, page * size)`

Subtopics Covered (8):
  • `arr.slice(start
  • End)` (`end` is exclusive!)
  • Negative indices `slice(-5)`
โ†’ What Topic Is Next: Next Topic 2.10: Array.prototype.splice and toSpliced
Guide โ†’

In-place delete/insert/replace `arr.splice(idx, delCount, ...added)` (returns removed items!) vs immutable ES2023 `arr.toSpliced(...)` for drag-and-drop reordering

Subtopics Covered (8):
  • In-place delete/insert/replace `arr.splice(idx
  • DelCount
  • ...added)` (returns removed items!) vs immutable ES2023 `arr.toSpliced(...)` for drag-
โ†’ What Topic Is Next: Next Topic 2.11: Array Destructuring
Guide โ†’

Positional unpacking `const [first, second, ...rest] = items`, skipping slots `[, second]`, default values, variable swap `[a, b] = [b, a]`, React `const [count, set...

Subtopics Covered (8):
  • Positional unpacking `const [first
  • Second
  • ...rest] = items`
โ†’ What Topic Is Next: Next Topic 2.12: JavaScript Objects (Creation, Dynamic Keys and Reference Semantics)
Guide โ†’

Object literals, dot `obj.key` vs computed bracket `obj[dynamicField]` access, `in` vs `Object.hasOwn(obj, key)`, shallow reference sharing

Subtopics Covered (8):
  • Object literals
  • Dot `obj.key` vs computed bracket `obj[dynamicField]` access
  • `in` vs `Object.hasOwn(obj
โ†’ What Topic Is Next: Next Topic 2.13: Execution Contexts (Global and Function)
Guide โ†’

Memory Creation phase vs Code Execution phase, Variable Environment, Lexical Environment, `this` binding creation

Subtopics Covered (8):
  • Memory Creation phase vs Code Execution phase
  • Variable Environment
  • Lexical Environment
โ†’ What Topic Is Next: Next Topic 2.14: The JavaScript Call Stack
Guide โ†’

LIFO stack frames, single-threaded execution, `RangeError: Maximum call stack size exceeded`, reading stack traces bottom-to-top

Subtopics Covered (8):
  • LIFO stack frames
  • Single-threaded execution
  • `RangeError: Maximum call stack size exceeded`
โ†’ What Topic Is Next: Next Topic 2.15: Lexical Environment and the Scope Chain
Guide โ†’

Environment Record + outer environment reference pointer walking outward to `null` at global root

Subtopics Covered (8):
  • Environment Record + outer environment reference pointer walking outward to `null` at global root
  • Production Pitfall Guard (Lexical Environment and the Scope Chain)
  • Hands-On Verification (Lexical Environment and the Scope Chain)
โ†’ What Topic Is Next: Next Topic 2.16: Closures (Mechanism, Practical Uses and Memory Nuances)
Guide โ†’

Functions bundling their outer lexical environment; data encapsulation, `once(fn)`, `memoize(fn)`, `debounce(fn, wait)`, avoiding accidental detached-DOM retention

Subtopics Covered (8):
  • Functions bundling their outer lexical environment
  • Data encapsulation
  • `once(fn)`
โ†’ What Topic Is Next: Next Topic 2.17: The this Keyword (4 Binding Rules)
Guide โ†’

1) `new` binding -> new instance, 2) Explicit `call/apply/bind`, 3) Implicit `obj.method()` -> `obj`, 4) Default standalone `fn()` -> `undefined` in strict mode (plu...

Subtopics Covered (8):
  • 1) `new` binding -> new instance
  • 2) Explicit `call/apply/bind`
  • 3) Implicit `obj.method()` -> `obj`
โ†’ What Topic Is Next: Next Topic 2.18: Explicit Context Control (call, apply and bind)
Guide โ†’

Immediate invocation `fn.call(ctx, a, b)` & `fn.apply(ctx, [a, b])` vs permanent bound wrapper `const bound = fn.bind(ctx, presetArg)` (partial application)

Subtopics Covered (8):
  • Immediate invocation `fn.call(ctx
  • B)` & `fn.apply(ctx
  • B])` vs permanent bound wrapper `const bound = fn.bind(ctx
โ†’ What Topic Is Next: Next Topic 2.19: Prototypes and the [[Prototype]] Chain
Guide โ†’

`Object.getPrototypeOf(obj)`, how `[1,2].map` resolves to `Array.prototype.map` -> `Object.prototype` -> `null`, memory sharing across 10,000 instances

Subtopics Covered (8):
  • `Object.getPrototypeOf(obj)`
  • How `[1
  • 2].map` resolves to `Array.prototype.map` -> `Object.prototype` -> `null`
โ†’ What Topic Is Next: Next Topic 2.20: Prototypal Inheritance (Object.create and Class Sugar)
Guide โ†’

`Object.create(proto)`, constructor functions vs modern `class Child extends Parent`, property lookup vs own-property shadowing

Subtopics Covered (8):
  • `Object.create(proto)`
  • Constructor functions vs modern `class Child extends Parent`
  • Property lookup vs own-property shadowing
โ†’ What Topic Is Next: Next Topic 2.21: Browser Event Loop Architecture
Guide โ†’

Call Stack + Web APIs (timers, network, DOM) + Microtask Queue + Macrotask (Task) Queue + Render (`requestAnimationFrame` / Layout / Paint) cycle

Subtopics Covered (8):
  • Call Stack + Web APIs (timers
  • Network
  • DOM) + Microtask Queue + Macrotask (Task) Queue + Render (`requestAnimationFrame` / Layout / Paint) cycle
โ†’ What Topic Is Next: Next Topic 2.22: Microtask Queue (Promises & queueMicrotask)
Guide โ†’

`.then/.catch/.finally` continuations, `await` resumption, `queueMicrotask()`, why microtasks drain completely (including newly enqueued microtasks!) before the next...

Subtopics Covered (8):
  • `.then/.catch/.finally` continuations
  • `await` resumption
  • `queueMicrotask()`
โ†’ What Topic Is Next: Next Topic 2.23: Document Object Model (DOM) Tree Architecture
Guide โ†’

Document -> Element -> Text -> Comment node hierarchy, live `HTMLCollection` vs static `NodeList`, how state-driven rendering relates to manual DOM mutation

Subtopics Covered (8):
  • Document -> Element -> Text -> Comment node hierarchy
  • Live `HTMLCollection` vs static `NodeList`
  • How state-driven rendering relates to manual DOM mutation
โ†’ What Topic Is Next: Next Topic 2.24: DOM Selection (getElementById, querySelector, querySelectorAll, closest)
Guide โ†’

Fast `document.getElementById`, CSS-powered `querySelector` / `querySelectorAll`, upward ancestor lookup `el.closest("[data-task-id]")` (essential for Event Delegati...

Subtopics Covered (8):
  • Fast `document.getElementById`
  • CSS-powered `querySelector` / `querySelectorAll`
  • Upward ancestor lookup `el.closest("[data-task-id]")` (essential for Event Delegation!)
โ†’ What Topic Is Next: Next Topic 2.25: DOM Manipulation (createElement, textContent, append, replaceChildren, remove)
Guide โ†’

`document.createElement`, XSS-safe `el.textContent = userText` (vs dangerous `innerHTML`), `append`, `replaceChildren` (clears & mounts in 1 call!), `el.remove()`, `...

Subtopics Covered (8):
  • `document.createElement`
  • XSS-safe `el.textContent = userText` (vs dangerous `innerHTML`)
  • `append`
โ†’ What Topic Is Next: Next Topic 2.26: HTML Attributes and dataset Manipulation
Guide โ†’

`getAttribute`/`setAttribute`/`removeAttribute`, boolean attributes `el.toggleAttribute("disabled", isSaving)`, camelCase `el.dataset.taskId` (`data-task-id`), synci...

Subtopics Covered (8):
  • `getAttribute`/`setAttribute`/`removeAttribute`
  • Boolean attributes `el.toggleAttribute("disabled"
  • IsSaving)`
โ†’ What Topic Is Next: Next Topic 2.27: CSS Class Manipulation with classList
Guide โ†’

`classList.add`, `remove`, conditional `classList.toggle("is-completed", task.completed)` (2nd boolean force arg!), `contains`, `replace`

Subtopics Covered (8):
  • `classList.add`
  • `remove`
  • Conditional `classList.toggle("is-completed"
โ†’ What Topic Is Next: Module 2 Capstone (Project 2: JavaScript Task Management Application (ES6+, DOM & LocalStorage)) โ†’ Next Topic 3.1: TypeScript Introduction (JavaScript vs TypeScript)

Build a production-grade, zero-framework Vanilla JavaScript ES6+ Task & Sprint Management Application supporting full CRUD, priority/category tagging, due-date status indicators, debounced real-time search, multi-criteria filtering/sorting, analytics counters, keyboard shortcuts, and crash-safe `localStorage` persistence.

โ€ข Create Task with Title, Description, Category (`Work`, `Study`, `Personal`, `Bugfix`), Priority (`High`, `Medium`, `Low`), and Due Date.
โ€ข Edit existing task details inline or in an accessible `<dialog>` modal without losing creation timestamp or completion state.
โ€ข Toggle task completion (`Pending <-> Completed`), Delete individual task (with confirmation), and Clear All Completed tasks.
โ€ข Debounced (`250ms`) live search by title/description combined with Status (`All`/`Pending`/`Completed`/`Overdue`) and Priority filters + Sort (`Due Date`, `Priority`, `Newest`).
โ€ข Live KPI summary bar: Total Tasks, Completed Count, Pending Count, Overdue Count, and Completion Percentage progress bar.
โ€ข Persist all state automatically in `localStorage` wrapped in safe `try/catch` JSON parsing + JSON Export/Import backup.

Module Learning & Hands-On Objectives

โœ“ Configure `tsconfig.json` with `"strict": true` (`strictNullChecks`, `noImplicitAny`, `noUncheckedIndexedAccess`) and understand zero-runtime type erasure.
โœ“ Choose `unknown` + type narrowing over `any`, and model impossible branches exhaustively with `never` + discriminated unions.
โœ“ Define clean domain contracts with `interface` and `type`, generics (`ApiResponse<T>`, `Paginated<T>`), and `extends keyof` constraints.
โœ“ Derive non-redundant types using `Partial`, `Required`, `Pick`, `Omit`, `Record`, `Readonly`, `ReturnType`, and `Parameters`.
โœ“ Migrate an existing JavaScript module into strict TypeScript with zero `any` escapes.
Guide โ†’

Compile-time structural type checking, IDE refactoring superpowers, complete type erasure at runtime (browsers still run emitted JS!)

Subtopics Covered (8):
  • Compile-time structural type checking
  • IDE refactoring superpowers
  • Complete type erasure at runtime (browsers still run emitted JS!)
โ†’ What Topic Is Next: Next Topic 3.2: TypeScript Environment Setup (Node.js, npm & Vite)
Guide โ†’

`npm install -D typescript`, `npx tsc --noEmit` typecheck script in `package.json`, Vite fast esbuild transpilation + `tsc` type checking

Subtopics Covered (8):
  • `npm install -D typescript`
  • `npx tsc --noEmit` typecheck script in `package.json`
  • Vite fast esbuild transpilation + `tsc` type checking
โ†’ What Topic Is Next: Next Topic 3.3: tsconfig.json and Strict Compiler Options
Guide โ†’

`"strict": true`, `"target": "ES2022"`, `"moduleResolution": "bundler"`, `"noUncheckedIndexedAccess": true`, `"noUnusedLocals"`, `"isolatedModules"`

Subtopics Covered (8):
  • `"strict": true`
  • `"target": "ES2022"`
  • `"moduleResolution": "bundler"`
โ†’ What Topic Is Next: Next Topic 3.4: Basic Primitive Types (string, number, boolean, null, undefined, bigint, symbol)
Guide โ†’

Lowercase primitive type names (`string`, NOT wrapper `String`!), `strictNullChecks` (`string | null`), optional `?` (`T | undefined`)

Subtopics Covered (8):
  • Lowercase primitive type names (`string`
  • NOT wrapper `String`!)
  • `strictNullChecks` (`string | null`)
โ†’ What Topic Is Next: Next Topic 3.5: Special Types (any, unknown, never and void)
Guide โ†’

Why `any` disables the type checker (avoid!), safe top-type `unknown` (requires narrowing before use! โ€” ideal for `catch (err: unknown)` & raw JSON), bottom-type `ne...

Subtopics Covered (8):
  • Why `any` disables the type checker (avoid!)
  • Safe top-type `unknown` (requires narrowing before use! โ€” ideal for `catch (err: unknown)` & raw JSON)
  • Bottom-type `never` (exhaustive switch checks!)
โ†’ What Topic Is Next: Next Topic 3.6: Typed Arrays and ReadonlyArray<T>
Guide โ†’

`string[]` vs `Array<string>`, immutable `readonly Product[]` / `ReadonlyArray<Product>` preventing accidental `.push()`/`.sort()` mutation on props!

Subtopics Covered (8):
  • `string[]` vs `Array<string>`
  • Immutable `readonly Product[]` / `ReadonlyArray<Product>` preventing accidental `.push()`/`.sort()` mutation on props!
  • Production Pitfall Guard (Typed Arrays and ReadonlyArray<T>)
โ†’ What Topic Is Next: Next Topic 3.7: Tuples and Labeled Tuples
Guide โ†’

Fixed-length positional types `[lat: number, lng: number]`, `readonly [T, (next: T) => void]` custom hook return tuples (`as const`)!

Subtopics Covered (8):
  • Fixed-length positional types `[lat: number
  • Lng: number]`
  • `readonly [T
โ†’ What Topic Is Next: Next Topic 3.8: Enums vs Const String Literal Unions
Guide โ†’

Numeric enums (reverse-mapping pitfalls!), string `enum OrderStatus`, `const enum` caveats with bundlers, why `const STATUS = { ... } as const` + union `type Status...

Subtopics Covered (8):
  • Numeric enums (reverse-mapping pitfalls!)
  • String `enum OrderStatus`
  • `const enum` caveats with bundlers
โ†’ What Topic Is Next: Next Topic 3.9: Type Inference
Guide โ†’

Contextual typing in `.map((emp) => ...)` and event listeners, `let` widening (`"asc"` -> `string`) vs `const` literal narrowing (`"asc"`), `as const` deep readonly...

Subtopics Covered (8):
  • Contextual typing in `.map((emp) => ...)`
  • Event listeners
  • `let` widening (`"asc"` -> `string`) vs `const` literal narrowing (`"asc"`)
โ†’ What Topic Is Next: Next Topic 3.10: Explicit Type Annotations (When Required vs Redundant)
Guide โ†’

Annotating function parameters (always!), public return types (catches accidental return-shape drift!), empty arrays `const items: Product[] = []`, and nullable stat...

Subtopics Covered (8):
  • Annotating function parameters (always!)
  • Public return types (catches accidental return-shape drift!)
  • Empty arrays `const items: Product[] = []`
โ†’ What Topic Is Next: Next Topic 3.11: Typed Functions, Optional/Default Params and Overloads
Guide โ†’

Function type expressions `(q: string) => Promise<Product[]>`, optional `page?: number`, callback `void` return rule, function overloads

Subtopics Covered (8):
  • Function type expressions `(q: string) => Promise<Product[]>`
  • Optional `page?: number`
  • Callback `void` return rule
โ†’ What Topic Is Next: Next Topic 3.12: Object Types, Optional (?) and readonly Modifiers
Guide โ†’

Structural duck typing, excess property checking on fresh object literals, `readonly id: string`, index signatures `[key: string]: number`

Subtopics Covered (8):
  • Structural duck typing
  • Excess property checking on fresh object literals
  • `readonly id: string`
โ†’ What Topic Is Next: Next Topic 3.13: Interfaces and Extends Inheritance
Guide โ†’

`interface Employee extends Person, Auditable`, declaration merging (extending global `Window` or Express/Vite `ImportMetaEnv`!), clean error messages in IDEs

Subtopics Covered (8):
  • `interface Employee extends Person
  • Auditable`
  • Declaration merging (extending global `Window` or Express/Vite `ImportMetaEnv`!)
โ†’ What Topic Is Next: Next Topic 3.14: Type Aliases (type) vs Interfaces
Guide โ†’

When ONLY `type` works: unions (`A | B`), primitives, tuples, mapped & conditional types; when `interface` shines: extensible object contracts & class `implements`

Subtopics Covered (8):
  • When ONLY `type` works: unions (`A | B`)
  • Primitives
  • Tuples
โ†’ What Topic Is Next: Next Topic 3.15: Union Types (|) and Discriminated (Tagged) Unions
Guide โ†’

Discriminant literal tag (`status: "loading" | "success" | "error"`), how checking `if (state.status === "success")` automatically narrows `state.data` without optio...

Subtopics Covered (8):
  • Discriminant literal tag (`status: "loading" | "success" | "error"`)
  • How checking `if (state.status === "success")` automatically narrows `state.data` without optional `?`!
  • Production Pitfall Guard (Union Types (|) and Discriminated (Tagged) Unions)
โ†’ What Topic Is Next: Next Topic 3.16: Intersection Types (&)
Guide โ†’

Combining orthogonal capabilities `type WithPagination<T> = T & { page: number; pageSize: number }`, conflicting property type -> `never`!

Subtopics Covered (8):
  • Combining orthogonal capabilities `type WithPagination<T> = T & { page: number
  • PageSize: number }`
  • Conflicting property type -> `never`!
โ†’ What Topic Is Next: Next Topic 3.17: Literal Types and Template Literal Types
Guide โ†’

Exact string/number/boolean literals (`size: "sm" | "md" | "lg"`), template literal types `` `/${string}` `` or `` `${Axis}-${Align}` ``

Subtopics Covered (8):
  • Exact string/number/boolean literals (`size: "sm" | "md" | "lg"`)
  • Template literal types `` `/${string}` `` or `` `${Axis}-${Align}` ``
  • Production Pitfall Guard (Literal Types and Template Literal Types)
โ†’ What Topic Is Next: Next Topic 3.18: Type Narrowing (typeof, instanceof, in and Custom Type Guards)
Guide โ†’

Control-flow narrowing via `typeof`, `instanceof`, `"data" in res`, `Array.isArray`, and user-defined type predicates `function isApiError(x: unknown): x is ApiError...

Subtopics Covered (8):
  • Control-flow narrowing via `typeof`
  • `instanceof`
  • `"data" in res`
โ†’ What Topic Is Next: Next Topic 3.19: Type Assertions (as) vs the satisfies Operator
Guide โ†’

Why `as User` lies to the compiler if JSON doesnโ€™t match, non-null `!` danger (avoid!), and TS 4.9+ `satisfies` (validates type compliance WITHOUT widening literal k...

Subtopics Covered (8):
  • Why `as User` lies to the compiler if JSON doesnโ€™t match
  • Non-null `!` danger (avoid!)
  • TS 4.9+ `satisfies` (validates type compliance WITHOUT widening literal keys/values!)
โ†’ What Topic Is Next: Next Topic 3.20: Generics (Functions, Interfaces and Classes)
Guide โ†’

Parameterized reusable contracts `ApiResponse<T>`, `PaginatedList<T>`, `groupBy<T, K extends PropertyKey>(items: readonly T[], keyFn: (item: T) => K)`

Subtopics Covered (8):
  • Parameterized reusable contracts `ApiResponse<T>`
  • `PaginatedList<T>`
  • `groupBy<T
โ†’ What Topic Is Next: Next Topic 3.21: Generic Constraints (extends and keyof)
Guide โ†’

`function pluck<T, K extends keyof T>(items: readonly T[], key: K): T[K][]`, constraining `<T extends { id: string }>`

Subtopics Covered (8):
  • `function pluck<T
  • K extends keyof T>(items: readonly T[]
  • Key: K): T[K][]`
โ†’ What Topic Is Next: Next Topic 3.22: Built-in Utility Types (Partial, Required, Pick, Omit, Record, Readonly, ReturnType)
Guide โ†’

Deriving `CreateEmployeePayload = Omit<Employee, "id" | "createdAt">`, `UpdateEmployeePayload = Partial<CreateEmployeePayload>`, `Pick` summary cards, `Record<Role,...

Subtopics Covered (8):
  • Deriving `CreateEmployeePayload = Omit<Employee
  • "id" | "createdAt">`
  • `UpdateEmployeePayload = Partial<CreateEmployeePayload>`
โ†’ What Topic Is Next: Next Topic 3.23: Advanced Types (Indexed Access, Mapped and Conditional Types)
Guide โ†’

Indexed lookup `Employee["department"]`, mapped `{ [K in keyof T]: boolean }` (e.g. `FormTouched<T>` & `FormErrors<T>`!), conditional `T extends Promise<infer U> ? U...

Subtopics Covered (8):
  • Indexed lookup `Employee["department"]`
  • Mapped `{ [K in keyof T]: boolean }` (e.g. `FormTouched<T>` & `FormErrors<T>`!)
  • Conditional `T extends Promise<infer U> ? U : T` (`Awaited<T>`)
โ†’ What Topic Is Next: Next Topic 3.24: TypeScript Modules and Type-Only Imports (import type)
Guide โ†’

`import type { Employee } from "./types"` / `import { type Employee, formatSalary }`, guaranteeing zero runtime circular-import side effects (`verbatimModuleSyntax`)

Subtopics Covered (8):
  • `import type { Employee } from "./types"` / `import { type Employee
  • FormatSalary }`
  • Guaranteeing zero runtime circular-import side effects (`verbatimModuleSyntax`)
โ†’ What Topic Is Next: Next Topic 3.25: TypeScript Classes, Abstract Classes and Parameter Properties
Guide โ†’

Implementing interfaces (`class HttpEmployeeRepo implements EmployeeRepo`), `public`/`private`/`protected`/`readonly` constructor parameter properties (used heavily...

Subtopics Covered (8):
  • Implementing interfaces (`class HttpEmployeeRepo implements EmployeeRepo`)
  • `public`/`private`/`protected`/`readonly` constructor parameter properties (used heavily in Angular DI!)
  • `abstract class`
โ†’ What Topic Is Next: Next Topic 3.26: Using JavaScript Libraries & Ambient Declaration Files (.d.ts)
Guide โ†’

`DefinitelyTyped` (`@types/node`, `@types/react`), authoring `vite-env.d.ts` / `ambient.d.ts` (`declare module "*.svg"`, `Window` analytics globals)

Subtopics Covered (8):
  • `DefinitelyTyped` (`@types/node`
  • `@types/react`)
  • Authoring `vite-env.d.ts` / `ambient.d.ts` (`declare module "*.svg"`
โ†’ What Topic Is Next: Next Topic 3.27: TypeScript Debugging, Source Maps and JS-to-TS Migration
Guide โ†’

Reading bottom-most nested TS assignability error lines first, browser `sourceMap: true` original `.ts` breakpoint debugging, incremental file-by-file `.js -> .ts` m...

Subtopics Covered (8):
  • Reading bottom-most nested TS assignability error lines first
  • Browser `sourceMap: true` original `.ts` breakpoint debugging
  • Incremental file-by-file `.js -> .ts` migration
โ†’ What Topic Is Next: Module 3 Capstone (Week 9 Lab Build: Strictly Typed TypeScript 5 Domain SDK (`strict: true`)) โ†’ Next Topic 4.1: React Introduction and Declarative Component Architecture

Author a zero-`any` TypeScript 5 commerce & HR domain library modeling discriminated `ApiResult<T>` unions, generic repository helpers, type predicates, and utility types (`Partial`, `Pick`, `Omit`, `Record`).

โ€ข Source code pushed to cohort GitHub repository
โ€ข README with setup, architecture notes, and screenshots
โ€ข Verified mobile + keyboard + edge-case checklist

Module Learning & Hands-On Objectives

โœ“ Scaffold Vite + React + TypeScript apps and think declaratively (`UI = f(state)`) instead of mutating DOM nodes manually.
โœ“ Compose small, single-responsibility functional components with strictly typed `Props` and `children` slots.
โœ“ Render conditional UI (avoiding `{count && <Badge />}` rendering `"0"`!) and lists with stable unique `key={item.id}` identifiers.
โœ“ Manage component state immutably with `useState`, functional updaters `setCount(c => c + 1)`, and controlled inputs.
โœ“ Organize projects using scalable `features/*` + `components/ui/*` architecture and inspect renders in React Developer Tools.
Guide โ†’

Declarative `UI = f(state)` vs imperative DOM surgery, Virtual DOM tree diffing, one-way data flow, React 18/19 ecosystem

Subtopics Covered (8):
  • Declarative `UI = f(state)` vs imperative DOM surgery
  • Virtual DOM tree diffing
  • One-way data flow
โ†’ What Topic Is Next: Next Topic 4.2: Vite + React + TypeScript Project Setup
Guide โ†’

`npm create vite@latest app -- --template react-ts`, `createRoot(document.getElementById("root")!).render(<StrictMode><App /></StrictMode>)`, why `<StrictMode>` doub...

Subtopics Covered (8):
  • `npm create vite@latest app -- --template react-ts`
  • `createRoot(document.getElementById("root")!).render(<StrictMode><App /></StrictMode>)`
  • Why `<StrictMode>` double-invokes in dev to catch impure bugs!
โ†’ What Topic Is Next: Next Topic 4.3: React Application Structure (src, public, assets & Entry Points)
Guide โ†’

`index.html` mount root, hashed bundled imports from `src/assets` vs static unhashed root files in `public/` (`robots.txt`, `favicon.svg`)

Subtopics Covered (8):
  • `index.html` mount root
  • Hashed bundled imports from `src/assets` vs static unhashed root files in `public/` (`robots.txt`
  • `favicon.svg`)
โ†’ What Topic Is Next: Next Topic 4.4: JSX Syntax, Expressions and Automatic XSS Escaping
Guide โ†’

Single root / `<>...</>` fragment rule, `className` & `htmlFor`, `{jsExpression}` (expressions, not `if`/`for` statements!), automatic HTML-entity escaping of `{user...

Subtopics Covered (8):
  • Single root / `<>...</>` fragment rule
  • `className` & `htmlFor`
  • `{jsExpression}` (expressions
โ†’ What Topic Is Next: Next Topic 4.5: Functional Components and Purity Rules
Guide โ†’

PascalCase naming (`function ProductCard()`), pure rendering (same props & state -> same JSX, zero side effects during render!), NEVER defining a component function...

Subtopics Covered (8):
  • PascalCase naming (`function ProductCard()`)
  • Pure rendering (same props & state -> same JSX
  • Zero side effects during render!)
โ†’ What Topic Is Next: Next Topic 4.6: Component Composition
Guide โ†’

Assembling complex pages from small focused `<PageHeader>`, `<FilterBar>`, `<DataGrid>`, and `<ModalShell>` building blocks

Subtopics Covered (8):
  • Assembling complex pages from small focused `<PageHeader>`
  • `<FilterBar>`
  • `<DataGrid>`
โ†’ What Topic Is Next: Next Topic 4.7: Props and Unidirectional Data Flow
Guide โ†’

Read-only props passed parent -> child, lifting shared state to the closest common parent, child-to-parent communication via callback props `onDelete(id)`

Subtopics Covered (8):
  • Read-only props passed parent -> child
  • Lifting shared state to the closest common parent
  • Child-to-parent communication via callback props `onDelete(id)`
โ†’ What Topic Is Next: Next Topic 4.8: TypeScript Props Validation and Default Values
Guide โ†’

Typing `interface ButtonProps extends ComponentPropsWithoutRef<"button">`, destructuring defaults `{ variant = "primary", isLoading = false }: ButtonProps`

Subtopics Covered (8):
  • Typing `interface ButtonProps extends ComponentPropsWithoutRef<"button">`
  • Destructuring defaults `{ variant = "primary"
  • IsLoading = false }: ButtonProps`
โ†’ What Topic Is Next: Next Topic 4.9: The children Prop and Slot Composition
Guide โ†’

`children: React.ReactNode`, named JSX slot props (`header?: React.ReactNode`, `footer?: React.ReactNode`), eliminating prop drilling via composition!

Subtopics Covered (8):
  • `children: React.ReactNode`
  • Named JSX slot props (`header?: React.ReactNode`
  • `footer?: React.ReactNode`)
โ†’ What Topic Is Next: Next Topic 4.10: Conditional Rendering Patterns (Avoiding the 0 Trap!)
Guide โ†’

Ternary `isOpen ? <Panel /> : null`, early `if (!user) return <Skeleton />;`, and why `{items.length && <List />}` renders a literal `"0"` on screen when `items` is...

Subtopics Covered (8):
  • Ternary `isOpen ? <Panel /> : null`
  • Early `if (!user) return <Skeleton />
  • Why `{items.length && <List />}` renders a literal `"0"` on screen when `items` is empty (always write `{items.length > 0 && <List />}`)!
โ†’ What Topic Is Next: Next Topic 4.11: Rendering Lists with .map()
Guide โ†’

Mapping typed arrays to JSX elements, empty-array fallback `<EmptyState />`, derived filtered/sorted arrays before return

Subtopics Covered (8):
  • Mapping typed arrays to JSX elements
  • Empty-array fallback `<EmptyState />`
  • Derived filtered/sorted arrays before return
โ†’ What Topic Is Next: Next Topic 4.12: Unique Keys and React Reconciliation
Guide โ†’

Why React needs stable sibling `key={item.id}` (or `crypto.randomUUID()` created at item-creation time, NEVER `Math.random()` during render!), why `key={index}` brea...

Subtopics Covered (8):
  • Why React needs stable sibling `key={item.id}` (or `crypto.randomUUID()` created at item-creation time
  • NEVER `Math.random()` during render!)
  • Why `key={index}` breaks state/inputs when reordering or deleting
โ†’ What Topic Is Next: Next Topic 4.13: React Synthetic Events and Typed Event Handlers
Guide โ†’

`React.MouseEvent<HTMLButtonElement>`, `React.ChangeEvent<HTMLInputElement>`, `React.FormEvent<HTMLFormElement>`, passing arguments cleanly `onClick={() => onRemove(...

Subtopics Covered (8):
  • `React.MouseEvent<HTMLButtonElement>`
  • `React.ChangeEvent<HTMLInputElement>`
  • `React.FormEvent<HTMLFormElement>`
โ†’ What Topic Is Next: Next Topic 4.14: Component State vs Local Variables & Derived State
Guide โ†’

Why mutating `let count = 0` doesnโ€™t trigger a re-render, and why derived values (`const filtered = ...`, `const fullName = first + " " + last`) MUST be computed dur...

Subtopics Covered (8):
  • Why mutating `let count = 0` doesnโ€™t trigger a re-render
  • Why derived values (`const filtered = ...`
  • `const fullName = first + " " + last`) MUST be computed during render instead of duplicated into redundant `useState`!
โ†’ What Topic Is Next: Next Topic 4.15: useState Hook Mastery
Guide โ†’

`const [user, setUser] = useState<User | null>(null)`, lazy initializer `useState(() => readExpensiveStorage())` (runs ONLY on initial mount, not every render!), bat...

Subtopics Covered (8):
  • `const [user
  • SetUser] = useState<User | null>(null)`
  • Lazy initializer `useState(() => readExpensiveStorage())` (runs ONLY on initial mount
โ†’ What Topic Is Next: Next Topic 4.16: Immutable State Updates & Functional Updaters
Guide โ†’

Why `state.push(x); setState(state)` triggers ZERO re-render (`Object.is(prev, next)` sees the exact same reference!), functional updater `setCount(prev => prev + 1)...

Subtopics Covered (8):
  • Why `state.push(x)
  • SetState(state)` triggers ZERO re-render (`Object.is(prev
  • Next)` sees the exact same reference!)
โ†’ What Topic Is Next: Next Topic 4.17: Controlled Components (Single Source of Truth Inputs)
Guide โ†’

Binding `value={email}` + `onChange={e => setEmail(e.target.value)}`, `checked={agreed}` on checkboxes, `<select value={role}>`, avoiding `"changing an uncontrolled...

Subtopics Covered (8):
  • Binding `value={email}` + `onChange={e => setEmail(e.target.value)}`
  • `checked={agreed}` on checkboxes
  • `<select value={role}>`
โ†’ What Topic Is Next: Next Topic 4.18: Uncontrolled Components and FormData / Ref Access
Guide โ†’

`defaultValue` / `defaultChecked`, reading `new FormData(e.currentTarget)` on submit, file inputs (`<input type="file">` is ALWAYS uncontrolled in React!)

Subtopics Covered (8):
  • `defaultValue` / `defaultChecked`
  • Reading `new FormData(e.currentTarget)` on submit
  • File inputs (`<input type="file">` is ALWAYS uncontrolled in React!)
โ†’ What Topic Is Next: Next Topic 4.19: Component Lifecycle Concepts (Mount, Update and Unmount)
Guide โ†’

How functional components mount (initial render + commit), update (state/prop change -> re-render + commit), and unmount (cleanup), resetting component state cleanly...

Subtopics Covered (8):
  • How functional components mount (initial render + commit)
  • Update (state/prop change -> re-render + commit)
  • Unmount (cleanup)
โ†’ What Topic Is Next: Next Topic 4.20: Styling React Apps, React DevTools & Feature-Based Project Structure
Guide โ†’

CSS Modules (`Button.module.css`), Tailwind + `clsx`/`tailwind-merge` conditional classes, inspecting props/hooks/render-reasons in React Developer Tools, organizing...

Subtopics Covered (8):
  • CSS Modules (`Button.module.css`)
  • Tailwind + `clsx`/`tailwind-merge` conditional classes
  • Inspecting props/hooks/render-reasons in React Developer Tools
โ†’ What Topic Is Next: Module 4 Capstone (Week 10 Lab Build: Modular Vite + React + TypeScript Interactive Catalog UI) โ†’ Next Topic 5.1: Rules of Hooks and Fiber Hook Linked-List Internals

Build a multi-component React + TypeScript Product & Expense Board featuring typed props, immutable `useState` updates, category filter chips, empty states, and stable `key` list rendering.

โ€ข Source code pushed to cohort GitHub repository
โ€ข README with setup, architecture notes, and screenshots
โ€ข Verified mobile + keyboard + edge-case checklist

Module Learning & Hands-On Objectives

โœ“ Respect the Rules of Hooks and use `useEffect` strictly for synchronizing with external systems (network, timers, subscriptions, DOM) with accurate dependency arrays and cleanup functions.
โœ“ Choose the right Hook for every job: `useRef` (DOM focus & non-rendering mutable values), `useContext` (theme/auth), `useReducer` (multi-event state machines), `useMemo`, and `useCallback`.
โœ“ Extract and compose reusable Custom Hooks (`useDebouncedValue`, `useLocalStorageState`, `useMediaQuery`).
โœ“ Build production forms with `React Hook Form` + `Zod` (`zodResolver`) and resilient UIs using Error Boundaries, `React.lazy`, `Suspense`, and `createPortal`.
Guide โ†’

Call Hooks ONLY at top level (never inside `if`, `for`, or early returns!) and ONLY inside React functions/custom `use*` hooks โ€” because React tracks hooks by determ...

Subtopics Covered (8):
  • Call Hooks ONLY at top level (never inside `if`
  • `for`
  • Or early returns!)
โ†’ What Topic Is Next: Next Topic 5.2: Deep-Dive useState Patterns
Guide โ†’

Grouping cohesive fields vs independent state variables, avoiding contradictory boolean flags via status union, resetting state cleanly

Subtopics Covered (8):
  • Grouping cohesive fields vs independent state variables
  • Avoiding contradictory boolean flags via status union
  • Resetting state cleanly
โ†’ What Topic Is Next: Next Topic 5.3: useEffect (Synchronizing with External Systems)
Guide โ†’

Post-paint execution timing, valid uses (timers, window listeners, WebSocket/DOM sync, data fetch with cleanup) vs invalid anti-patterns (computing derived state or...

Subtopics Covered (8):
  • Post-paint execution timing
  • Valid uses (timers
  • Window listeners
โ†’ What Topic Is Next: Next Topic 5.4: Effect Dependency Arrays and Stale Closure Prevention
Guide โ†’

No array (every render) vs `[]` (mount/unmount) vs `[dep1, dep2]` (`Object.is` comparison!), why lying to `exhaustive-deps` causes stale closure bugs, stabilizing ob...

Subtopics Covered (8):
  • No array (every render) vs `[]` (mount/unmount) vs `[dep1
  • Dep2]` (`Object.is` comparison!)
  • Why lying to `exhaustive-deps` causes stale closure bugs
โ†’ What Topic Is Next: Next Topic 5.5: Effect Cleanup Functions
Guide โ†’

When cleanup runs (BEFORE re-running the effect with new deps AND on unmount!), clearing `setInterval`/`setTimeout`, `removeEventListener`, `ctrl.abort()`, WebSocket...

Subtopics Covered (8):
  • When cleanup runs (BEFORE re-running the effect with new deps
  • On unmount!)
  • Clearing `setInterval`/`setTimeout`
โ†’ What Topic Is Next: Next Topic 5.6: useRef (DOM References and Non-Rendering Mutable Boxes)
Guide โ†’

`const inputRef = useRef<HTMLInputElement>(null)` (`inputRef.current?.focus()`), storing timer IDs / previous values without triggering re-renders, rule: never read/...

Subtopics Covered (8):
  • `const inputRef = useRef<HTMLInputElement>(null)` (`inputRef.current?.focus()`)
  • Storing timer IDs / previous values without triggering re-renders
  • Rule: never read/write `ref.current` during render!
โ†’ What Topic Is Next: Next Topic 5.7: useContext (Scoped Shared State Without Prop Drilling)
Guide โ†’

`createContext<AuthContextValue | null>(null)`, `<AuthContext.Provider>`, wrapping `useContext` in a custom `useAuth()` hook that throws a clear error if used outsid...

Subtopics Covered (8):
  • `createContext<AuthContextValue | null>(null)`
  • `<AuthContext.Provider>`
  • Wrapping `useContext` in a custom `useAuth()` hook that throws a clear error if used outside `<AuthProvider>`!
โ†’ What Topic Is Next: Next Topic 5.8: useReducer (Predictable Event-Driven State Transitions)
Guide โ†’

Pure `(state, action) => nextState` reducer + TypeScript Discriminated Union `Action` types, unit-testing complex cart/wizard reducers as plain TypeScript functions!

Subtopics Covered (8):
  • Pure `(state
  • Action) => nextState` reducer + TypeScript Discriminated Union `Action` types
  • Unit-testing complex cart/wizard reducers as plain TypeScript functions!
โ†’ What Topic Is Next: Next Topic 5.9: useMemo (Memoizing Expensive Derived Computations)
Guide โ†’

`const stats = useMemo(() => computeHeavyStats(rows), [rows])`, preserving referential equality for downstream memoized children/effects, when NOT to overuse `useMem...

Subtopics Covered (8):
  • `const stats = useMemo(() => computeHeavyStats(rows)
  • [rows])`
  • Preserving referential equality for downstream memoized children/effects
โ†’ What Topic Is Next: Next Topic 5.10: useCallback (Referential Stability for Functions)
Guide โ†’

`const handleDelete = useCallback((id: string) => setItems(prev => prev.filter(i => i.id !== id)), [])`, why `useCallback` matters ONLY when passed to `React.memo` c...

Subtopics Covered (8):
  • `const handleDelete = useCallback((id: string) => setItems(prev => prev.filter(i => i.id !== id))
  • [])`
  • Why `useCallback` matters ONLY when passed to `React.memo` children or effect dependencies!
โ†’ What Topic Is Next: Next Topic 5.11: Custom Hooks (Extracting Reusable Stateful Logic)
Guide โ†’

`use*` naming contract, how two components calling `useToggle()` get completely independent isolated state (hooks share *logic*, NOT state!), clean typed return cont...

Subtopics Covered (8):
  • `use*` naming contract
  • How two components calling `useToggle()` get completely independent isolated state (hooks share *logic*
  • NOT state!)
โ†’ What Topic Is Next: Next Topic 5.12: Hook Composition (Combining Custom Hooks)
Guide โ†’

Building higher-level domain hooks (`useProductSearch` composing `useDebouncedValue` + `useSearchParams` + `useFetch`)

Subtopics Covered (8):
  • Building higher-level domain hooks (`useProductSearch` composing `useDebouncedValue` + `useSearchParams` + `useFetch`)
  • Production Pitfall Guard (Hook Composition (Combining Custom Hooks))
  • Hands-On Verification (Hook Composition (Combining Custom Hooks))
โ†’ What Topic Is Next: Next Topic 5.13: Controlled Forms Architecture in React
Guide โ†’

Managing multi-input `values`, `touched`, `errors`, `isSubmitting` states, disabling duplicate submit clicks, accessible `aria-invalid` + `aria-describedby` wiring

Subtopics Covered (8):
  • Managing multi-input `values`
  • `touched`
  • `errors`
โ†’ What Topic Is Next: Next Topic 5.14: Client-Side Form Validation Logic & UX Patterns
Guide โ†’

Field-level vs cross-field validation (`confirmPassword === password`, `endDate >= startDate`), mapping backend `400/422` field errors onto specific inputs, focusing...

Subtopics Covered (8):
  • Field-level vs cross-field validation (`confirmPassword === password`
  • `endDate >= startDate`)
  • Mapping backend `400/422` field errors onto specific inputs
โ†’ What Topic Is Next: Next Topic 5.15: React Hook Form (Uncontrolled-Performance Typed Forms)
Guide โ†’

`useForm<FormValues>({ defaultValues, mode: "onTouched" })`, `{...register("email")}`, `handleSubmit(onValid)`, `formState: { errors, isSubmitting, isDirty }`, `rese...

Subtopics Covered (8):
  • `useForm<FormValues>({ defaultValues
  • Mode: "onTouched" })`
  • `{...register("email")}`
โ†’ What Topic Is Next: Next Topic 5.16: Zod Schema Validation & Type Inference
Guide โ†’

`z.object({ email: z.string().trim().email(), salary: z.coerce.number().min(0) })`, `.refine()` cross-field checks, `type FormValues = z.infer<typeof schema>` (singl...

Subtopics Covered (8):
  • `z.object({ email: z.string().trim().email()
  • Salary: z.coerce.number().min(0) })`
  • `.refine()` cross-field checks
โ†’ What Topic Is Next: Next Topic 5.17: Error Boundaries (Graceful Render Crash Recovery)
Guide โ†’

Catching uncaught rendering/lifecycle errors in subtree (`ErrorBoundary` / `react-error-boundary`), rendering a friendly fallback card with "Try Again" reset button...

Subtopics Covered (8):
  • Catching uncaught rendering/lifecycle errors in subtree (`ErrorBoundary` / `react-error-boundary`)
  • Rendering a friendly fallback card with "Try Again" reset button instead of a blank white screen! What Error Boundaries do NOT catch (event handlers & async callbacks โ€” use `try/catch` there)
  • Production Pitfall Guard (Error Boundaries (Graceful Render Crash Recovery))
โ†’ What Topic Is Next: Next Topic 5.18: Code Splitting with React.lazy
Guide โ†’

`const AnalyticsPage = lazy(() => import("./pages/AnalyticsPage"))`, Vite automatic separate JS chunk emission, keeping initial landing bundle small and fast

Subtopics Covered (8):
  • `const AnalyticsPage = lazy(() => import("./pages/AnalyticsPage"))`
  • Vite automatic separate JS chunk emission
  • Keeping initial landing bundle small
โ†’ What Topic Is Next: Next Topic 5.19: React Suspense Boundaries
Guide โ†’

`<Suspense fallback={<PageSkeleton />}>` coordinating lazy route/component loading states declaratively without manual spinner flags

Subtopics Covered (8):
  • `<Suspense fallback={<PageSkeleton />}>` coordinating lazy route/component loading states declaratively without manual spinner flags
  • Production Pitfall Guard (React Suspense Boundaries)
  • Hands-On Verification (React Suspense Boundaries)
โ†’ What Topic Is Next: Next Topic 5.20: React Fragments (<>...<\/> and Keyed <Fragment>)
Guide โ†’

Grouping sibling `<td>` cells or `<dt>`/`<dd>` pairs without inserting invalid wrapper `<div>`s into `<tr>` or CSS Grid/Flex parents! Using `<Fragment key={item.id}>...

Subtopics Covered (8):
  • Grouping sibling `<td>` cells or `<dt>`/`<dd>` pairs without inserting invalid wrapper `<div>`s into `<tr>` or CSS Grid/Flex parents! Using `<Fragment key={item.id}>` when mapping fragments
  • Production Pitfall Guard (React Fragments (<>...<\/> and Keyed <Fragment>))
  • Hands-On Verification (React Fragments (<>...<\/> and Keyed <Fragment>))
โ†’ What Topic Is Next: Next Topic 5.21: React Portals (createPortal for Modals, Drawers & Toasts)
Guide โ†’

`createPortal(modalJsx, document.body)` escaping parent `overflow: hidden` and `z-index` stacking contexts while preserving React event bubbling & Context tree inher...

Subtopics Covered (8):
  • `createPortal(modalJsx
  • Document.body)` escaping parent `overflow: hidden`
  • `z-index` stacking contexts while preserving React event bubbling & Context tree inheritance!
โ†’ What Topic Is Next: Next Topic 5.22: Ref Forwarding & Context Performance Patterns
Guide โ†’

Passing `ref` into custom `<Input>` components (React 19 `ref` as prop & `forwardRef` compatibility), splitting `StateContext` from `DispatchContext` & memoizing `va...

Subtopics Covered (8):
  • Passing `ref` into custom `<Input>` components (React 19 `ref` as prop & `forwardRef` compatibility)
  • Splitting `StateContext` from `DispatchContext` & memoizing `value` so Context consumers donโ€™t re-render needlessly!
  • Production Pitfall Guard (Ref Forwarding & Context Performance Patterns)
โ†’ What Topic Is Next: Module 5 Capstone (Week 11 Lab Build: Custom Hooks & Zod-Validated Multi-Step Onboarding Form) โ†’ Next Topic 6.1: Client-Side SPA Routing with React Router

Create reusable `useDebounce`, `useLocalStorage`, and `useFetch` custom hooks powering a multi-step Employee Onboarding form built with React Hook Form and Zod schema validation.

โ€ข Source code pushed to cohort GitHub repository
โ€ข README with setup, architecture notes, and screenshots
โ€ข Verified mobile + keyboard + edge-case checklist

Module Learning & Hands-On Objectives

โœ“ Configure client-side SPA routing with nested persistent layouts, dynamic `:id` params, URL `useSearchParams` filter/page syncing, and `404` catch-all routes.
โœ“ Implement Protected Authentication Routes (preserving `location.state.from` post-login redirect!) and Role-Based Authorization Guards.
โœ“ Architect clean typed Axios / Fetch API service modules with centralized base URLs (`import.meta.env.VITE_API_URL`), Bearer header interceptors, and 401 expiry handling.
โœ“ Handle complete `GET`, `POST`, `PUT`/`PATCH`, `DELETE`, and `FormData` file uploads with accessible Loading, Error, Empty, Search, and Paginated UI states.
โœ“ Deliver Month 3 Deliverable: Mini-Project 3 โ€” TypeScript + React Employee Management Dashboard.
Guide โ†’

How SPA routers intercept link clicks via History API without full HTML reloads, configuring SPA fallback (`rewrites` to `/index.html` on Vercel/Netlify/Nginx!)

Subtopics Covered (8):
  • How SPA routers intercept link clicks via History API without full HTML reloads
  • Configuring SPA fallback (`rewrites` to `/index.html` on Vercel/Netlify/Nginx!)
  • Production Pitfall Guard (Client-Side SPA Routing with React Router)
โ†’ What Topic Is Next: Next Topic 6.2: BrowserRouter and Router Setup
Guide โ†’

`<BrowserRouter>` / `createBrowserRouter`, mounting router cleanly with global `<AuthProvider>` and `<ErrorBoundary>`

Subtopics Covered (8):
  • `<BrowserRouter>` / `createBrowserRouter`
  • Mounting router cleanly with global `<AuthProvider>`
  • `<ErrorBoundary>`
โ†’ What Topic Is Next: Next Topic 6.3: Route Definitions and Catch-All 404 Pages
Guide โ†’

`<Routes>` & `<Route path element>`, index routes (`index`), wildcard `path="*"` `<NotFoundPage />` with recovery link

Subtopics Covered (8):
  • `<Routes>` & `<Route path element>`
  • Index routes (`index`)
  • Wildcard `path="*"` `<NotFoundPage />` with recovery link
โ†’ What Topic Is Next: Next Topic 6.4: Dynamic Route Parameters (useParams)
Guide โ†’

`/employees/:employeeId`, reading `const { employeeId } = useParams()`, validating undefined/malformed param before API calls

Subtopics Covered (8):
  • `/employees/:employeeId`
  • Reading `const { employeeId } = useParams()`
  • Validating undefined/malformed param before API calls
โ†’ What Topic Is Next: Next Topic 6.5: Nested Routing and Persistent <Outlet /> Layouts
Guide โ†’

Parent `<DashboardLayout>` (Sidebar + Topbar + `<Outlet />`) wrapping child routes (`/dashboard`, `/employees`, `/settings`) without remounting the shell!

Subtopics Covered (8):
  • Parent `<DashboardLayout>` (Sidebar + Topbar + `<Outlet />`) wrapping child routes (`/dashboard`
  • `/employees`
  • `/settings`) without remounting the shell!
โ†’ What Topic Is Next: Next Topic 6.6: Navigation (<Link>, <NavLink> and useNavigate)
Guide โ†’

`<Link to="...">` (renders real crawlable `<a>` โ€” supports Cmd+Click new tab!), `<NavLink className={({ isActive }) => ...}>` (`aria-current="page"`!), programmatic...

Subtopics Covered (8):
  • `<Link to="...">` (renders real crawlable `<a>` โ€” supports Cmd+Click new tab!)
  • `<NavLink className={({ isActive }) => ...}>` (`aria-current="page"`!)
  • Programmatic `navigate("/employees"
โ†’ What Topic Is Next: Next Topic 6.7: Protected Routes (Authentication Guards)
Guide โ†’

`<ProtectedRoute>` wrapper checking `isBootstrappingAuth` (show loader!) -> `!isAuthenticated` (`<Navigate to="/login" state={{ from: location }} replace />`) -> `<O...

Subtopics Covered (8):
  • `<ProtectedRoute>` wrapper checking `isBootstrappingAuth` (show loader!) -> `!isAuthenticated` (`<Navigate to="/login" state={{ from: location }} replace />`) -> `<Outlet />`
  • Production Pitfall Guard (Protected Routes (Authentication Guards))
  • Hands-On Verification (Protected Routes (Authentication Guards))
โ†’ What Topic Is Next: Next Topic 6.8: Role-Based Route Guards (Authorization)
Guide โ†’

`<RequireRole allowedRoles={["ADMIN", "HR"]}>` returning a `<Forbidden403Page />` when an authenticated user lacks permission (plus reminding students backend APIs A...

Subtopics Covered (8):
  • `<RequireRole allowedRoles={["ADMIN"
  • "HR"]}>` returning a `<Forbidden403Page />` when an authenticated user lacks permission (plus reminding students backend APIs ALWAYS enforce RBAC too!)
  • Production Pitfall Guard (Role-Based Route Guards (Authorization))
โ†’ What Topic Is Next: Next Topic 6.9: Route-Based Lazy Code Splitting
Guide โ†’

Combining `React.lazy(() => import(...))` + `<Suspense>` per route so `/login` downloads in milliseconds without pulling heavy dashboard chart/table code

Subtopics Covered (8):
  • Combining `React.lazy(() => import(...))` + `<Suspense>` per route so `/login` downloads in milliseconds without pulling heavy dashboard chart/table code
  • Production Pitfall Guard (Route-Based Lazy Code Splitting)
  • Hands-On Verification (Route-Based Lazy Code Splitting)
โ†’ What Topic Is Next: Next Topic 6.10: REST API Integration Architecture in React
Guide โ†’

Separating HTTP transport (`apiClient.ts`) from domain endpoints (`employeesApi.ts`) from UI Hooks/Components; never hardcoding `fetch("http://localhost:8080/...")`...

Subtopics Covered (8):
  • Separating HTTP transport (`apiClient.ts`) from domain endpoints (`employeesApi.ts`) from UI Hooks/Components
  • Never hardcoding `fetch("http://localhost:8080/...")` inside JSX components!
  • Production Pitfall Guard (REST API Integration Architecture in React)
โ†’ What Topic Is Next: Next Topic 6.11: Fetch API Integration with Cleanup in React
Guide โ†’

Typed `fetch` helper, `AbortController` cleanup on unmount/query change, handling `204 No Content` empty body (`res.status === 204 ? null : await res.json()`!)

Subtopics Covered (8):
  • Typed `fetch` helper
  • `AbortController` cleanup on unmount/query change
  • Handling `204 No Content` empty body (`res.status === 204 ? null : await res.json()`!)
โ†’ What Topic Is Next: Next Topic 6.12: Axios HTTP Client Configuration
Guide โ†’

`axios.create({ baseURL, timeout: 10_000, headers })`, automatic JSON serialization, automatic rejection on non-2xx status codes, `AbortSignal` support

Subtopics Covered (8):
  • `axios.create({ baseURL
  • Timeout: 10_000
  • Headers })`
โ†’ What Topic Is Next: Next Topic 6.13: Typed GET Requests and Query Parameters
Guide โ†’

`apiClient.get<PaginatedResponse<Employee>>("/employees", { params, signal })`, automatic URL encoding of `params` object

Subtopics Covered (8):
  • `apiClient.get<PaginatedResponse<Employee>>("/employees"
  • { params
  • Signal })`
โ†’ What Topic Is Next: Next Topic 6.14: Typed POST Requests (Creating Resources)
Guide โ†’

`apiClient.post<Employee>("/employees", payload)`, disabling submit during in-flight request, navigating or updating list state on `201 Created`

Subtopics Covered (8):
  • `apiClient.post<Employee>("/employees"
  • Payload)`
  • Disabling submit during in-flight request
โ†’ What Topic Is Next: Next Topic 6.15: PUT and PATCH Requests (Updating Resources)
Guide โ†’

Pre-populating edit forms (`reset(loadedEmployee)` in React Hook Form), full `PUT` vs partial `PATCH`, handling `409 Conflict` concurrent updates

Subtopics Covered (8):
  • Pre-populating edit forms (`reset(loadedEmployee)` in React Hook Form)
  • Full `PUT` vs partial `PATCH`
  • Handling `409 Conflict` concurrent updates
โ†’ What Topic Is Next: Next Topic 6.16: DELETE Requests and Accessible Confirmation Modals
Guide โ†’

Never deleting destructive records on a single accidental click! Confirming via accessible `<ConfirmDeleteModal>` (`role="alertdialog"`), disabling row during delete...

Subtopics Covered (8):
  • Never deleting destructive records on a single accidental click! Confirming via accessible `<ConfirmDeleteModal>` (`role="alertdialog"`)
  • Disabling row during delete
  • Refreshing/removing row
โ†’ What Topic Is Next: Next Topic 6.17: HTTP Headers (Authorization Bearer, Accept & Idempotency)
Guide โ†’

`Authorization: Bearer <accessToken>`, `Accept: application/json`, `X-Request-Id` correlation headers, why browsers block setting forbidden headers like `Host`/`Orig...

Subtopics Covered (8):
  • `Authorization: Bearer <accessToken>`
  • `Accept: application/json`
  • `X-Request-Id` correlation headers
โ†’ What Topic Is Next: Next Topic 6.18: Axios Request and Response Interceptors
Guide โ†’

`apiClient.interceptors.request.use(...)` (inject token), `interceptors.response.use(...)` (normalize errors, handle `401` token refresh queue or clean logout redire...

Subtopics Covered (8):
  • `apiClient.interceptors.request.use(...)` (inject token)
  • `interceptors.response.use(...)` (normalize errors
  • Handle `401` token refresh queue or clean logout redirect!)
โ†’ What Topic Is Next: Next Topic 6.19: Graceful API Error Handling (axios.isAxiosError & ProblemDetail)
Guide โ†’

Distinguishing offline network timeout (`!err.response`) from `400/422` field validation errors (`setError` on inputs!) vs `403` forbidden vs `500` server fault with...

Subtopics Covered (8):
  • Distinguishing offline network timeout (`!err.response`) from `400/422` field validation errors (`setError` on inputs!) vs `403` forbidden vs `500` server fault with Retry button
  • Production Pitfall Guard (Graceful API Error Handling (axios.isAxiosError & ProblemDetail))
  • Hands-On Verification (Graceful API Error Handling (axios.isAxiosError & ProblemDetail))
โ†’ What Topic Is Next: Next Topic 6.20: Loading States (Layout-Preserving Skeletons vs Spinners)
Guide โ†’

Matching `<TableRowSkeleton />` dimensions to real rows to avoid layout shift, disabling submit buttons (`aria-busy="true"`), avoiding flicker on sub-150ms fast resp...

Subtopics Covered (8):
  • Matching `<TableRowSkeleton />` dimensions to real rows to avoid layout shift
  • Disabling submit buttons (`aria-busy="true"`)
  • Avoiding flicker on sub-150ms fast responses
โ†’ What Topic Is Next: Next Topic 6.21: Empty States (Zero-Data vs Zero-Search-Matches UX)
Guide โ†’

Distinguishing first-time empty collection (`"No employees yet -> + Add First Employee"`) from empty filtered search (`"No matches for 'xyz' -> Clear Filters"` butto...

Subtopics Covered (8):
  • Distinguishing first-time empty collection (`"No employees yet -> + Add First Employee"`) from empty filtered search (`"No matches for 'xyz' -> Clear Filters"` button!)
  • Production Pitfall Guard (Empty States (Zero-Data vs Zero-Search-Matches UX))
  • Hands-On Verification (Empty States (Zero-Data vs Zero-Search-Matches UX))
โ†’ What Topic Is Next: Next Topic 6.22: API-Driven Pagination and useSearchParams Sync
Guide โ†’

Syncing `?page=2&size=10&dept=ENG&q=a` via React Router `useSearchParams()`, resetting `page` back to `1` whenever search or filter changes!

Subtopics Covered (8):
  • Syncing `?page=2&size=10&dept=ENG&q=a` via React Router `useSearchParams()`
  • Resetting `page` back to `1` whenever search or filter changes!
  • Production Pitfall Guard (API-Driven Pagination and useSearchParams Sync)
โ†’ What Topic Is Next: Next Topic 6.23: Debounced Search, Multi-Faceted Filtering & Multipart File Uploads
Guide โ†’

Combining `useDebouncedValue(searchInput, 300)` + `AbortController`, uploading employee avatars/resumes via `new FormData()` + `onUploadProgress` percentage bar & fi...

Subtopics Covered (8):
  • Combining `useDebouncedValue(searchInput
  • 300)` + `AbortController`
  • Uploading employee avatars/resumes via `new FormData()` + `onUploadProgress` percentage bar & file size/MIME client checks
โ†’ What Topic Is Next: Next Topic 6.24: Authentication Flows, JWT Storage Security & Vite Environment Variables
Guide โ†’

Login/Register/Logout flows, memory access token + `HttpOnly` refresh cookie best practice vs `localStorage` XSS trade-offs, `VITE_*` public env prefix rule (NEVER p...

Subtopics Covered (8):
  • Login/Register/Logout flows
  • Memory access token + `HttpOnly` refresh cookie best practice vs `localStorage` XSS trade-offs
  • `VITE_*` public env prefix rule (NEVER put private API secrets in `VITE_*` โ€” it ships to every browser!)
โ†’ What Topic Is Next: Module 6 Capstone (Project 3: React & TypeScript Employee Management Dashboard) โ†’ Next Topic 7.1: React Rendering Phases (Render vs Commit)

Build a strictly typed single-page Employee & Department Management Dashboard using Vite, React 18+, TypeScript 5 (`strict: true`), React Router, React Hook Form + Zod, Axios REST API integration, Protected Routes, search/filters, pagination, and full CRUD workflows.

โ€ข Authentication Login flow (`/login`) with protected dashboard routes (`<RequireAuth>`) preserving intended `?from=` destination and clean Logout.
โ€ข Overview Analytics screen (`/dashboard`) displaying Headcount, Active vs On-Leave count, Department breakdown cards, and Recent Joiners.
โ€ข Employee Directory (`/employees`) with debounced search (name/email/code), Department & Status (`Active`, `On Leave`, `Inactive`) filters, column sorting, and pagination.
โ€ข Create Employee (`/employees/new`) and Edit Employee (`/employees/:id/edit`) forms powered by React Hook Form + Zod schema validation.
โ€ข Employee Detail Profile (`/employees/:id`) + Delete Employee confirmation modal with optimistic/confirmed list refresh and toast feedback.

Module Learning & Hands-On Objectives

โœ“ Trace React render vs commit phases and fiber reconciliation so state placement minimizes cascading subtree re-renders.
โœ“ Separate UI local state, shared Context state, global client state (Redux Toolkit / Zustand), and asynchronous server-cache state (TanStack Query / RTK Query).
โœ“ Architect normalized Redux Toolkit stores with typed `RootState`/`AppDispatch`, Immer-powered slices, memoized selectors, and `createAsyncThunk` workflows.
โœ“ Manage server data caching, background refetching, cache invalidation, and optimistic UI updates with TanStack Query.
โœ“ Persist safe client preferences (theme, cart draft) across browser reloads without persisting sensitive auth secrets.
Guide โ†’

Trigger -> Render phase (pure virtual tree calculation) -> Commit phase (DOM mutations & `useLayoutEffect`) -> Browser Paint -> `useEffect`

Subtopics Covered (8):
  • Trigger -> Render phase (pure virtual tree calculation) -> Commit phase (DOM mutations & `useLayoutEffect`) -> Browser Paint -> `useEffect`
  • Production Pitfall Guard (React Rendering Phases (Render vs Commit))
  • Hands-On Verification (React Rendering Phases (Render vs Commit))
โ†’ What Topic Is Next: Next Topic 7.2: Virtual DOM Diffing and Fiber Reconciliation
Guide โ†’

Element type comparison (`div` vs `section` unmounts state!), component position identity, `key` reconciliation in dynamic lists, React 18 automatic state batching

Subtopics Covered (8):
  • Element type comparison (`div` vs `section` unmounts state!)
  • Component position identity
  • `key` reconciliation in dynamic lists
โ†’ What Topic Is Next: Next Topic 7.3: State Taxonomy: Local, Shared, Global, URL and Server State
Guide โ†’

Colocating local UI state (`isOpen`), lifting shared sibling state, URL search-param state (`?sort=price`), global client state, and remote server cache state

Subtopics Covered (8):
  • Colocating local UI state (`isOpen`)
  • Lifting shared sibling state
  • URL search-param state (`?sort=price`)
โ†’ What Topic Is Next: Next Topic 7.4: React Context API (`createContext` and `useContext`)
Guide โ†’

Creating typed contexts with `null` default + custom guard hook `useTheme()`, wrapping subtree `<Provider>`, reading context deeply without prop drilling

Subtopics Covered (8):
  • Creating typed contexts with `null` default + custom guard hook `useTheme()`
  • Wrapping subtree `<Provider>`
  • Reading context deeply without prop drilling
โ†’ What Topic Is Next: Next Topic 7.5: Eliminating Prop Drilling with Composition and Context
Guide โ†’

Component composition (`children` / slots) vs split State/Dispatch Contexts (`CartStateContext` + `CartDispatchContext`) to isolate re-renders

Subtopics Covered (8):
  • Component composition (`children` / slots) vs split State/Dispatch Contexts (`CartStateContext` + `CartDispatchContext`) to isolate re-renders
  • Production Pitfall Guard (Eliminating Prop Drilling with Composition and Context)
  • Hands-On Verification (Eliminating Prop Drilling with Composition and Context)
โ†’ What Topic Is Next: Next Topic 7.6: Redux Architecture Fundamentals
Guide โ†’

Single source of truth store, read-only state, pure reducer functions `(state, action) => nextState`, unidirectional dispatch -> reducer -> selector -> UI cycle, Red...

Subtopics Covered (8):
  • Single source of truth store
  • Read-only state
  • Pure reducer functions `(state
โ†’ What Topic Is Next: Next Topic 7.7: Redux Toolkit (`@reduxjs/toolkit`) Setup
Guide โ†’

Installing `@reduxjs/toolkit` and `react-redux`, `configureStore`, `<Provider store={store}>`, typed `RootState` and `AppDispatch`, `useAppDispatch` and `useAppSelec...

Subtopics Covered (8):
  • Installing `@reduxjs/toolkit`
  • `react-redux`
  • `configureStore`
โ†’ What Topic Is Next: Next Topic 7.8: Redux Store Configuration and Reducer Composition
Guide โ†’

Combining feature slices (`auth`, `cart`, `wishlist`, `ui`) in `configureStore({ reducer: { ... } })`, serializability check middleware rules

Subtopics Covered (8):
  • Combining feature slices (`auth`
  • `cart`
  • `wishlist`
โ†’ What Topic Is Next: Next Topic 7.9: Creating Feature Slices with `createSlice`
Guide โ†’

`name`, `initialState` with TypeScript interface, `reducers` with `PayloadAction<T>`, Immer safe "mutating" syntax (`state.items.push(...)`) compiling to immutable u...

Subtopics Covered (8):
  • `name`
  • `initialState` with TypeScript interface
  • `reducers` with `PayloadAction<T>`
โ†’ What Topic Is Next: Next Topic 7.10: Actions, Action Creators and Pure Reducers
Guide โ†’

Auto-generated action creators (`cartSlice.actions`), `prepare` callbacks for ID/timestamp generation outside reducers, `extraReducers` builder pattern

Subtopics Covered (8):
  • Auto-generated action creators (`cartSlice.actions`)
  • `prepare` callbacks for ID/timestamp generation outside reducers
  • `extraReducers` builder pattern
โ†’ What Topic Is Next: Next Topic 7.11: Memoized Selectors (`createSelector` / Reselect)
Guide โ†’

Colocated slice selectors, derived state calculation (subtotal, GST 18%, discount, grand total), memoizing derived arrays/objects with `createSelector`

Subtopics Covered (8):
  • Colocated slice selectors
  • Derived state calculation (subtotal
  • GST 18%
โ†’ What Topic Is Next: Next Topic 7.12: Async Redux Workflows (`createAsyncThunk`)
Guide โ†’

Lifecycle actions (`pending`, `fulfilled`, `rejected`), `thunkAPI` (`rejectWithValue`, `signal`, `getState`), handling loading/error state in `extraReducers(builder...

Subtopics Covered (8):
  • Lifecycle actions (`pending`
  • `fulfilled`
  • `rejected`)
โ†’ What Topic Is Next: Next Topic 7.13: Redux Middleware and Listener Middleware
Guide โ†’

`createListenerMiddleware` reactive side-effects (syncing cart to `localStorage`, firing analytics events on `orderPlaced`), custom logger middleware mechanics

Subtopics Covered (8):
  • `createListenerMiddleware` reactive side-effects (syncing cart to `localStorage`
  • Firing analytics events on `orderPlaced`)
  • Custom logger middleware mechanics
โ†’ What Topic Is Next: Next Topic 7.14: RTK Query Fundamentals (`createApi` and `fetchBaseQuery`)
Guide โ†’

Defining declarative API slices, `builder.query` & `builder.mutation`, auto-generated React hooks (`useGetProductsQuery`), `providesTags` & `invalidatesTags` automat...

Subtopics Covered (8):
  • Defining declarative API slices
  • `builder.query` & `builder.mutation`
  • Auto-generated React hooks (`useGetProductsQuery`)
โ†’ What Topic Is Next: Next Topic 7.15: Server State vs Client State Architecture
Guide โ†’

Why server state is fundamentally different (remote ownership, asynchronous staleness, shared multi-user mutations, background revalidation, deduplication, paginatio...

Subtopics Covered (8):
  • Why server state is fundamentally different (remote ownership
  • Asynchronous staleness
  • Shared multi-user mutations
โ†’ What Topic Is Next: Next Topic 7.16: TanStack Query (`@tanstack/react-query`) Fundamentals
Guide โ†’

`QueryClient` & `<QueryClientProvider>`, `useQuery({ queryKey, queryFn, staleTime, gcTime })`, hierarchical query keys `['products', { category, page }]`, `ReactQuer...

Subtopics Covered (8):
  • `QueryClient` & `<QueryClientProvider>`
  • `useQuery({ queryKey
  • QueryFn
โ†’ What Topic Is Next: Next Topic 7.17: Mutations and Cache Invalidation (`useMutation`)
Guide โ†’

`useMutation({ mutationFn, onSuccess, onError })`, `queryClient.invalidateQueries({ queryKey: ['products'] })`, disabling submit buttons via `mutation.isPending`

Subtopics Covered (8):
  • `useMutation({ mutationFn
  • OnSuccess
  • OnError })`
โ†’ What Topic Is Next: Next Topic 7.18: Optimistic UI Updates and Rollback
Guide โ†’

`onMutate` snapshot (`cancelQueries` -> `getQueryData` -> `setQueryData`), instant heart/wishlist toggle feedback, automatic rollback in `onError`, final sync in `on...

Subtopics Covered (8):
  • `onMutate` snapshot (`cancelQueries` -> `getQueryData` -> `setQueryData`)
  • Instant heart/wishlist toggle feedback
  • Automatic rollback in `onError`
โ†’ What Topic Is Next: Next Topic 7.19: Lightweight Client State with Zustand Fundamentals
Guide โ†’

`create<StoreState>()((set, get) => ({ ... }))`, fine-grained selector subscriptions `useStore(s => s.sidebarOpen)`, zero-provider ergonomic global UI stores

Subtopics Covered (8):
  • `create<StoreState>()((set
  • Get) => ({ ... }))`
  • Fine-grained selector subscriptions `useStore(s => s.sidebarOpen)`
โ†’ What Topic Is Next: Next Topic 7.20: Safe Client State Persistence
Guide โ†’

Persisting cart/theme/onboarding flags to `localStorage` with schema version migration & Zod parsing on hydration, cross-tab `storage` event sync

Subtopics Covered (8):
  • Persisting cart/theme/onboarding flags to `localStorage` with schema version migration & Zod parsing on hydration
  • Cross-tab `storage` event sync
  • Production Pitfall Guard (Safe Client State Persistence)
โ†’ What Topic Is Next: Next Topic 7.21: Choosing the Right State Management Architecture
Guide โ†’

Practical decision matrix: Component `useState`/`useReducer` vs URL `SearchParams` vs React Context vs Zustand vs Redux Toolkit vs TanStack Query / RTK Query

Subtopics Covered (8):
  • Practical decision matrix: Component `useState`/`useReducer` vs URL `SearchParams` vs React Context vs Zustand vs Redux Toolkit vs TanStack Query / RTK Query
  • Production Pitfall Guard (Choosing the Right State Management Architecture)
  • Hands-On Verification (Choosing the Right State Management Architecture)
โ†’ What Topic Is Next: Module 7 Capstone (Week 13 Lab Build: Redux Toolkit Multi-Slice Cart + TanStack Query Catalog) โ†’ Next Topic 8.1: Scalable Component Architecture (Presentational vs Feature Containers)

Combine TanStack Query server-state caching (paginated products + optimistic wishlist toggle) with a typed Redux Toolkit store (`cartSlice`, `authSlice`, `toastSlice`, memoized `createSelector` totals, and `localStorage` listener sync).

โ€ข Source code pushed to cohort GitHub repository
โ€ข README with setup, architecture notes, and screenshots
โ€ข Verified mobile + keyboard + edge-case checklist

Module Learning & Hands-On Objectives

โœ“ Structure large React repositories by domain feature (`src/features/catalog`, `cart`, `checkout`, `auth`) rather than giant flat `components/` folders.
โœ“ Build composable UI primitives using Compound Components, polymorphic props, portals, and advanced custom hooks.
โœ“ Eliminate real rendering bottlenecks measured in React Profiler using state colocation, `React.memo`, `useMemo`, `useCallback`, and list virtualization.
โœ“ Split route and heavy chart/editor bundles via `React.lazy` + `<Suspense>` and isolate runtime crashes with `<ErrorBoundary>`.
โœ“ Implement debounced/throttled search, `IntersectionObserver` infinite scrolling, and multipart file upload with preview & progress.
Guide โ†’

Separating stateless UI primitives (`Button`, `Badge`, `Modal`), domain components (`ProductCard`), and data-connected feature views (`CatalogPage`)

Subtopics Covered (8):
  • Separating stateless UI primitives (`Button`
  • `Badge`
  • `Modal`)
โ†’ What Topic Is Next: Next Topic 8.2: Feature-Based Folder Architecture
Guide โ†’

Organizing large apps into `src/features/<feature>/{api,components,hooks,types,index.ts}` + `src/components/ui` + `src/lib` + `src/app` with public barrel boundaries

Subtopics Covered (8):
  • Organizing large apps into `src/features/<feature>/{api
  • Components
  • Hooks
โ†’ What Topic Is Next: Next Topic 8.3: Design Systems and Tokenized UI Foundations
Guide โ†’

Design tokens (spacing, colors, radii, typography, z-index, elevation), variant recipes (`cva` / class-variance-authority pattern), `clsx` + `tailwind-merge` (`cn()`...

Subtopics Covered (8):
  • Design tokens (spacing
  • Colors
  • Radii
โ†’ What Topic Is Next: Next Topic 8.4: Working with Enterprise Component Libraries (Headless UI / Radix Concepts)
Guide โ†’

Styled libraries (MUI, AntD) vs Headless accessible primitives (Radix UI, Headless UI, Shadcn pattern) โ€” owning markup/Tailwind while delegating WAI-ARIA focus math

Subtopics Covered (8):
  • Styled libraries (MUI
  • AntD) vs Headless accessible primitives (Radix UI
  • Headless UI
โ†’ What Topic Is Next: Next Topic 8.5: Compound Components Pattern
Guide โ†’

Implicit parent-child state sharing via scoped React Context (`<Tabs>`, `<Tabs.List>`, `<Tabs.Trigger>`, `<Tabs.Panel>`), flexible layout composition without 15 conf...

Subtopics Covered (8):
  • Implicit parent-child state sharing via scoped React Context (`<Tabs>`
  • `<Tabs.List>`
  • `<Tabs.Trigger>`
โ†’ What Topic Is Next: Next Topic 8.6: Higher-Order Components (HOCs) โ€” Legacy & Cross-Cutting Awareness
Guide โ†’

Function `(WrappedComponent) => EnhancedComponent`, prop forwarding, `displayName`, why Hooks replaced 95% of HOCs and how to maintain legacy enterprise HOCs

Subtopics Covered (8):
  • Function `(WrappedComponent) => EnhancedComponent`
  • Prop forwarding
  • `displayName`
โ†’ What Topic Is Next: Next Topic 8.7: Render Props Pattern and Function-as-Child
Guide โ†’

Inverting rendering control via `renderItem={(item) => ...}` or `children={({ isOpen, close }) => ...}` for headless data/virtualizer components

Subtopics Covered (8):
  • Inverting rendering control via `renderItem={(item) => ...}` or `children={({ isOpen
  • Close }) => ...}` for headless data/virtualizer components
  • Production Pitfall Guard (Render Props Pattern and Function-as-Child)
โ†’ What Topic Is Next: Next Topic 8.8: Advanced Custom Hooks (`useIntersectionObserver`, `useMediaQuery`, `useOnClickOutside`)
Guide โ†’

Encapsulating browser observers, SSR-safe `window` guards, stable callback refs (`useRef` latest-handler pattern), cleanup guarantees

Subtopics Covered (8):
  • Encapsulating browser observers
  • SSR-safe `window` guards
  • Stable callback refs (`useRef` latest-handler pattern)
โ†’ What Topic Is Next: Next Topic 8.9: Identifying Unnecessary Re-Renders and State Colocation
Guide โ†’

Why components re-render (parent re-rendered, own state changed, consumed context changed), pushing state down (`SearchInput` isolation), lifting static JSX children...

Subtopics Covered (8):
  • Why components re-render (parent re-rendered
  • Own state changed
  • Consumed context changed)
โ†’ What Topic Is Next: Next Topic 8.10: Component Memoization with `React.memo`
Guide โ†’

Shallow prop comparison `Object.is`, when `React.memo` actually helps (expensive pure child rendered frequently with identical props), why inline objects/arrays defe...

Subtopics Covered (8):
  • Shallow prop comparison `Object.is`
  • When `React.memo` actually helps (expensive pure child rendered frequently with identical props)
  • Why inline objects/arrays defeat `memo`
โ†’ What Topic Is Next: Next Topic 8.11: Expensive Computation Caching with `useMemo`
Guide โ†’

Memoizing expensive CPU work (`O(n log n)` sorting/filtering 5,000 rows) AND preserving referential identity for downstream `memo`/`useEffect` dependencies

Subtopics Covered (8):
  • Memoizing expensive CPU work (`O(n log n)` sorting/filtering 5
  • 000 rows)
  • Preserving referential identity for downstream `memo`/`useEffect` dependencies
โ†’ What Topic Is Next: Next Topic 8.12: Stable Function References with `useCallback`
Guide โ†’

Preserving function identity across renders when passing callbacks to `React.memo` children or custom hook `useEffect` dependency arrays

Subtopics Covered (8):
  • Preserving function identity across renders when passing callbacks to `React.memo` children or custom hook `useEffect` dependency arrays
  • Production Pitfall Guard (Stable Function References with `useCallback`)
  • Hands-On Verification (Stable Function References with `useCallback`)
โ†’ What Topic Is Next: Next Topic 8.13: Code Splitting and Dynamic `import()`
Guide โ†’

Why a single monolithic `index.js` hurts First Contentful Paint & Time to Interactive, Vite automatic Rollup chunk generation on dynamic `import('./HeavyChart')`

Subtopics Covered (8):
  • Why a single monolithic `index.js` hurts First Contentful Paint & Time to Interactive
  • Vite automatic Rollup chunk generation on dynamic `import('./HeavyChart')`
  • Production Pitfall Guard (Code Splitting and Dynamic `import()`)
โ†’ What Topic Is Next: Next Topic 8.14: Lazy Component Loading (`React.lazy`) and `<Suspense>`
Guide โ†’

Wrapping route groups and heavy modals in `<Suspense fallback={<PageSkeleton />}>`, avoiding layout jarring with dimension-matched skeletons, preloading on link hove...

Subtopics Covered (8):
  • Wrapping route groups
  • Heavy modals in `<Suspense fallback={<PageSkeleton />}>`
  • Avoiding layout jarring with dimension-matched skeletons
โ†’ What Topic Is Next: Next Topic 8.15: Error Boundaries and Graceful Crash Recovery
Guide โ†’

Catching render/lifecycle errors in subtree (`getDerivedStateFromError`, `componentDidCatch`, `react-error-boundary`), retry reset keys, what Error Boundaries DO NOT...

Subtopics Covered (8):
  • Catching render/lifecycle errors in subtree (`getDerivedStateFromError`
  • `componentDidCatch`
  • `react-error-boundary`)
โ†’ What Topic Is Next: Next Topic 8.16: React Portals (`createPortal`) for Modals, Drawers and Toasts
Guide โ†’

`createPortal(children, document.body)`, escaping parent `overflow: hidden` / `transform` stacking contexts while preserving React event bubbling & Context access

Subtopics Covered (8):
  • `createPortal(children
  • Document.body)`
  • Escaping parent `overflow: hidden` / `transform` stacking contexts while preserving React event bubbling & Context access
โ†’ What Topic Is Next: Next Topic 8.17: List Virtualization / Windowing (`@tanstack/react-virtual` Concepts)
Guide โ†’

Why mounting 10,000 DOM nodes freezes layout/scroll, rendering only the ~20 visible viewport rows + overscan buffer with translated container height

Subtopics Covered (8):
  • Why mounting 10
  • 000 DOM nodes freezes layout/scroll
  • Rendering only the ~20 visible viewport rows + overscan buffer with translated container height
โ†’ What Topic Is Next: Next Topic 8.18: Debouncing High-Frequency User Input
Guide โ†’

Implementing `debounce(fn, delay)` and `useDebouncedValue(value, 300)` from scratch with `setTimeout`/`clearTimeout` cleanup, cancelling stale network calls

Subtopics Covered (8):
  • Implementing `debounce(fn
  • Delay)`
  • `useDebouncedValue(value
โ†’ What Topic Is Next: Next Topic 8.19: Throttling Continuous Scroll, Resize and Pointer Events
Guide โ†’

Difference between Debounce (wait for silence) vs Throttle (execute at most once every `N` ms / `requestAnimationFrame`), cleanup on unmount

Subtopics Covered (8):
  • Difference between Debounce (wait for silence) vs Throttle (execute at most once every `N` ms / `requestAnimationFrame`)
  • Cleanup on unmount
  • Production Pitfall Guard (Throttling Continuous Scroll, Resize and Pointer Events)
โ†’ What Topic Is Next: Next Topic 8.20: Infinite Scrolling with `IntersectionObserver`
Guide โ†’

Sentinel `<div ref={loadMoreRef}>` + native `IntersectionObserver` (`rootMargin: '200px'`) + cursor/page `useInfiniteQuery`, preventing duplicate concurrent page loa...

Subtopics Covered (8):
  • Sentinel `<div ref={loadMoreRef}>` + native `IntersectionObserver` (`rootMargin: '200px'`) + cursor/page `useInfiniteQuery`
  • Preventing duplicate concurrent page loads
  • Production Pitfall Guard (Infinite Scrolling with `IntersectionObserver`)
โ†’ What Topic Is Next: Next Topic 8.21: Client and API Search Optimization (Autocomplete, Highlighting & Caching)
Guide โ†’

Minimum character threshold (`>= 2`), trimmed normalized keys, cached query hits, `AbortController` race cancellation, keyboard arrow navigation (`combobox` ARIA), s...

Subtopics Covered (8):
  • Minimum character threshold (`>= 2`)
  • Trimmed normalized keys
  • Cached query hits
โ†’ What Topic Is Next: Next Topic 8.22: File Upload, Image Preview and Client Download Handling
Guide โ†’

`<input type="file" accept>`, drag-and-drop dropzone, MIME & max-size (`<= 2MB`) validation, `URL.createObjectURL` + `revokeObjectURL` preview, `FormData` upload pro...

Subtopics Covered (8):
  • `<input type="file" accept>`
  • Drag-
  • -drop dropzone
โ†’ What Topic Is Next: Next Topic 8.23: Building Accessible Semantic Reusable UI Components
Guide โ†’

Focus management (`autoFocus` return to trigger on modal close), `aria-expanded`, `aria-controls`, `aria-live="polite"` status toasts, `Escape` dismissal, keyboard p...

Subtopics Covered (8):
  • Focus management (`autoFocus` return to trigger on modal close)
  • `aria-expanded`
  • `aria-controls`
โ†’ What Topic Is Next: Module 8 Capstone (Week 14 Lab Build: Accessible Design-System Primitives & Virtualized Search Grid) โ†’ Next Topic 9.1: Browser and Frontend Security Threat Model

Build Compound `<Tabs>` and `<Accordion>`, a Portal focus-trapped `<Modal>`, `<ErrorBoundary>`, `IntersectionObserver` infinite scroll, debounced autocomplete, and a 10,000-row virtualized list.

โ€ข Source code pushed to cohort GitHub repository
โ€ข README with setup, architecture notes, and screenshots
โ€ข Verified mobile + keyboard + edge-case checklist

Module Learning & Hands-On Objectives

โœ“ Identify and prevent Cross-Site Scripting (XSS), `javascript:` URL injection, CSRF, insecure token storage, and leaked frontend secrets.
โœ“ Diagnose and optimize Core Web Vitals (LCP < 2.5s, INP < 200ms, CLS < 0.1) using Chrome DevTools Performance/Network panels and Lighthouse.
โœ“ Optimize images (`WebP`/`AVIF`, `srcset`, LCP `fetchpriority="high"`), web fonts (`font-display: swap`), tree-shaking, and HTTP `Cache-Control` immutable hashed assets.
โœ“ Write fast, user-centric unit and component tests using Vitest, React Testing Library (`getByRole`, `userEvent`), and Mock Service Worker (`MSW`) / API mocks.
โœ“ Understand end-to-end browser verification fundamentals with Playwright.
Guide โ†’

Same-Origin Policy (scheme + host + port), untrusted client boundary, OWASP frontend risks (XSS, CSRF, Clickjacking, Open Redirects, Supply-chain npm packages)

Subtopics Covered (8):
  • Same-Origin Policy (scheme + host + port)
  • Untrusted client boundary
  • OWASP frontend risks (XSS
โ†’ What Topic Is Next: Next Topic 9.2: Cross-Site Scripting (XSS) Prevention in React
Guide โ†’

Reflected, Stored, and DOM-based XSS; how React auto-escapes JSX `{text}` children; hidden XSS vectors (`dangerouslySetInnerHTML`, `href="javascript:..."`, `eval`),...

Subtopics Covered (8):
  • Reflected
  • Stored
  • DOM-based XSS
โ†’ What Topic Is Next: Next Topic 9.3: Cross-Site Request Forgery (CSRF) Fundamentals
Guide โ†’

How ambient browser cookies auto-attach on cross-site requests, `SameSite=Lax`/`Strict` cookies, anti-CSRF tokens (`X-XSRF-TOKEN`) in cookie-authenticated SPAs

Subtopics Covered (8):
  • How ambient browser cookies auto-attach on cross-site requests
  • `SameSite=Lax`/`Strict` cookies
  • Anti-CSRF tokens (`X-XSRF-TOKEN`) in cookie-authenticated SPAs
โ†’ What Topic Is Next: Next Topic 9.4: Cross-Origin Resource Sharing (CORS) Deep Dive
Guide โ†’

Why browsers enforce CORS, simple requests vs `OPTIONS` preflight (`Content-Type: application/json`, `Authorization`), `Access-Control-Allow-Origin`, Vite dev proxy...

Subtopics Covered (8):
  • Why browsers enforce CORS
  • Simple requests vs `OPTIONS` preflight (`Content-Type: application/json`
  • `Authorization`)
โ†’ What Topic Is Next: Next Topic 9.5: Content Security Policy (CSP) and Security Headers
Guide โ†’

`Content-Security-Policy` (`default-src 'self'`, `script-src`, `connect-src`, `frame-ancestors 'none'`), `Strict-Transport-Security` (HSTS), `X-Content-Type-Options:...

Subtopics Covered (8):
  • `Content-Security-Policy` (`default-src 'self'`
  • `script-src`
  • `connect-src`
โ†’ What Topic Is Next: Next Topic 9.6: Secure Authentication and Token Storage Strategies
Guide โ†’

`HttpOnly; Secure; SameSite` cookies vs in-memory access token + `HttpOnly` refresh cookie vs risks of long-lived JWTs in `localStorage` under XSS

Subtopics Covered (8):
  • `HttpOnly
  • Secure
  • SameSite` cookies vs in-memory access token + `HttpOnly` refresh cookie vs risks of long-lived JWTs in `localStorage` under XSS
โ†’ What Topic Is Next: Next Topic 9.7: Preventing Exposed Secrets in Frontend Bundles
Guide โ†’

How Vite bundles `import.meta.env.VITE_*` directly into public static JS, keeping private API keys (OpenAI, Stripe Secret, DB URLs) strictly behind backend proxy end...

Subtopics Covered (8):
  • How Vite bundles `import.meta.env.VITE_*` directly into public static JS
  • Keeping private API keys (OpenAI
  • Stripe Secret
โ†’ What Topic Is Next: Next Topic 9.8: Client-Side Input Validation vs Server Validation
Guide โ†’

Why Zod/RHF client validation improves instant UX & accessibility while backend validation remains mandatory for security, trimming/normalizing payloads, open-redire...

Subtopics Covered (8):
  • Why Zod/RHF client validation improves instant UX & accessibility while backend validation remains mandatory for security
  • Trimming/normalizing payloads
  • Open-redirect `?next=` validation
โ†’ What Topic Is Next: Next Topic 9.9: Measuring Web Page Performance (FCP, TTFB, TBT & Waterfall)
Guide โ†’

Navigation Timing, TTFB, First Contentful Paint (FCP), Total Blocking Time (TBT), Speed Index, reading network waterfalls, Long Tasks (> 50ms on main thread)

Subtopics Covered (8):
  • Navigation Timing
  • TTFB
  • First Contentful Paint (FCP)
โ†’ What Topic Is Next: Next Topic 9.10: Core Web Vitals: LCP, INP and CLS
Guide โ†’

Largest Contentful Paint (`<= 2.5s`), Interaction to Next Paint (`<= 200ms`), Cumulative Layout Shift (`<= 0.1`), `web-vitals` real-user monitoring (RUM) basics

Subtopics Covered (8):
  • Largest Contentful Paint (`<= 2.5s`)
  • Interaction to Next Paint (`<= 200ms`)
  • Cumulative Layout Shift (`<= 0.1`)
โ†’ What Topic Is Next: Next Topic 9.11: Modern Image Optimization (`WebP`/`AVIF`, `srcset` & `<picture>`)
Guide โ†’

Choosing SVG (icons/logos) vs WebP/AVIF (photos), responsive `srcset` + `sizes`, `<picture>` art direction, `loading="lazy"` below fold vs eager hero

Subtopics Covered (8):
  • Choosing SVG (icons/logos) vs WebP/AVIF (photos)
  • Responsive `srcset` + `sizes`
  • `<picture>` art direction
โ†’ What Topic Is Next: Next Topic 9.12: Web Font Optimization and Preventing FOIT/CLS
Guide โ†’

Self-hosted `woff2` subsets, `<link rel="preload" as="font" crossorigin>`, `font-display: swap` / `optional`, metric-matched fallback font stacks

Subtopics Covered (8):
  • Self-hosted `woff2` subsets
  • `<link rel="preload" as="font" crossorigin>`
  • `font-display: swap` / `optional`
โ†’ What Topic Is Next: Next Topic 9.13: Bundle Size Optimization and Tree-Shaking
Guide โ†’

ES module static imports enabling Rollup/Vite tree-shaking (`import { format } from 'date-fns'` vs full `moment`), inspecting bundles with `rollup-plugin-visualizer`

Subtopics Covered (8):
  • ES module static imports enabling Rollup/Vite tree-shaking (`import { format } from 'date-fns'` vs full `moment`)
  • Inspecting bundles with `rollup-plugin-visualizer`
  • Production Pitfall Guard (Bundle Size Optimization and Tree-Shaking)
โ†’ What Topic Is Next: Next Topic 9.14: Code Splitting Initial JavaScript Payload
Guide โ†’

Route-based splitting, on-demand modal/drawer chunk loading, Vite `build.rollupOptions.output.manualChunks` vendor separation (`react-vendor`)

Subtopics Covered (8):
  • Route-based splitting
  • On-demand modal/drawer chunk loading
  • Vite `build.rollupOptions.output.manualChunks` vendor separation (`react-vendor`)
โ†’ What Topic Is Next: Next Topic 9.15: Browser Caching Strategies (`Cache-Control` & Content Hashing)
Guide โ†’

Why Vite emits content-hashed filenames (`index-B7k9x2.js`), `Cache-Control: public, max-age=31536000, immutable` for `/assets/*` vs `no-cache` for `index.html`, `ET...

Subtopics Covered (8):
  • Why Vite emits content-hashed filenames (`index-B7k9x2.js`)
  • `Cache-Control: public
  • Max-age=31536000
โ†’ What Topic Is Next: Next Topic 9.16: Chrome DevTools Performance, Memory & Coverage Profiling
Guide โ†’

Performance flamecharts (identifying Long Tasks & forced synchronous layouts), Coverage tab (unused CSS/JS bytes), Memory heap snapshots (detached DOM leaks)

Subtopics Covered (8):
  • Performance flamecharts (identifying Long Tasks & forced synchronous layouts)
  • Coverage tab (unused CSS/JS bytes)
  • Memory heap snapshots (detached DOM leaks)
โ†’ What Topic Is Next: Next Topic 9.17: Lighthouse Audits (Performance, Accessibility, Best Practices, SEO)
Guide โ†’

Running Lighthouse in Incognito against production preview builds, interpreting actionable diagnostics vs lab score variance

Subtopics Covered (8):
  • Running Lighthouse in Incognito against production preview builds
  • Interpreting actionable diagnostics vs lab score variance
  • Production Pitfall Guard (Lighthouse Audits (Performance, Accessibility, Best Practices, SEO))
โ†’ What Topic Is Next: Next Topic 9.18: Cross-Browser and Multi-Device Compatibility Testing
Guide โ†’

Testing across Chromium (Chrome/Edge), WebKit (Safari iOS `100dvh`, date inputs, flex/scroll quirks), and Gecko (Firefox), CanIUse & Autoprefixer

Subtopics Covered (8):
  • Testing across Chromium (Chrome/Edge)
  • WebKit (Safari iOS `100dvh`
  • Date inputs
โ†’ What Topic Is Next: Next Topic 9.19: Unit Testing Fundamentals for Frontend Logic
Guide โ†’

Testing Trophy / Pyramid for frontend (Static TypeScript -> Pure Unit Tests -> Component Integration Tests -> Critical E2E), Arrange-Act-Assert (`AAA`), deterministi...

Subtopics Covered (8):
  • Testing Trophy / Pyramid for frontend (Static TypeScript -> Pure Unit Tests -> Component Integration Tests -> Critical E2E)
  • Arrange-Act-Assert (`AAA`)
  • Deterministic tests
โ†’ What Topic Is Next: Next Topic 9.20: Vitest / Jest Setup, Matchers and Lifecycle
Guide โ†’

Configuring `vitest` + `jsdom` + `@testing-library/jest-dom` (`toBeInTheDocument`, `toHaveTextContent`, `toBeDisabled`), `describe`/`it`/`expect`, `vi.useFakeTimers(...

Subtopics Covered (8):
  • Configuring `vitest` + `jsdom` + `@testing-library/jest-dom` (`toBeInTheDocument`
  • `toHaveTextContent`
  • `toBeDisabled`)
โ†’ What Topic Is Next: Next Topic 9.21: Component Testing with React Testing Library (RTL)
Guide โ†’

`render(<Component />)`, accessible query priority (`getByRole`, `getByLabelText` over `getByTestId`), `queryBy*` (asserting absence), `findBy*` (waiting for async U...

Subtopics Covered (8):
  • `render(<Component />)`
  • Accessible query priority (`getByRole`
  • `getByLabelText` over `getByTestId`)
โ†’ What Topic Is Next: Next Topic 9.22: Simulating Realistic User Interactions (`@testing-library/user-event`)
Guide โ†’

`const user = userEvent.setup()`, `await user.type(...)`, `await user.click(...)`, `await user.keyboard('{Escape}')`, verifying Zod validation error messages & submi...

Subtopics Covered (8):
  • `const user = userEvent.setup()`
  • `await user.type(...)`
  • `await user.click(...)`
โ†’ What Topic Is Next: Next Topic 9.23: Mocking REST APIs (`MSW` / `vi.fn`), Coverage & Playwright E2E Intro
Guide โ†’

Network-level API mocking with Mock Service Worker (`msw` `http.get`/`HttpResponse.json`) vs `vi.spyOn`, testing loading -> success & `500` error states, coverage th...

Subtopics Covered (8):
  • Network-level API mocking with Mock Service Worker (`msw` `http.get`/`HttpResponse.json`) vs `vi.spyOn`
  • Testing loading -> success & `500` error states
  • Coverage thresholds
โ†’ What Topic Is Next: Module 9 Capstone (Week 15 Lab Build: Lighthouse 90+ Hardened App & Vitest + RTL Test Suite) โ†’ Next Topic 10.1: Next.js Architecture: CSR vs SSR vs SSG vs ISR

Audit and harden a React storefront against XSS/open-redirects, tune LCP/CLS/bundle splitting to >= 90 Lighthouse scores, and write 20+ Vitest + React Testing Library (`userEvent` + mocked API) tests.

โ€ข Source code pushed to cohort GitHub repository
โ€ข README with setup, architecture notes, and screenshots
โ€ข Verified mobile + keyboard + edge-case checklist

Module Learning & Hands-On Objectives

โœ“ Contrast Client-Side Rendering (Vite SPA), Server-Side Rendering (SSR), and Static Generation (SSG/ISR) so you pick the right tool for dashboards vs SEO storefronts.
โœ“ Navigate the Next.js App Router (`app/layout.tsx`, `page.tsx`, `loading.tsx`, `error.tsx`, `[slug]/page.tsx`) and React Server vs Client Component (`'use client'`) boundaries.
โœ“ Configure dynamic SEO metadata (`generateMetadata`), `next/image`, `next/font`, environment variables (`NEXT_PUBLIC_*` vs server-only), and lightweight Route Handlers.
โœ“ Architect, test, and deliver **Project 4: React E-Commerce Frontend Application** using React, TypeScript, Redux Toolkit / TanStack Query, React Router, Tailwind CSS, and Vitest/RTL.
Guide โ†’

Why pure CSR SPAs send an empty `<div id="root">` initially vs Next.js pre-rendered HTML for SEO/LCP, when Vite React SPA is ideal (auth dashboards) vs Next.js (publ...

Subtopics Covered (8):
  • Why pure CSR SPAs send an empty `<div id="root">` initially vs Next.js pre-rendered HTML for SEO/LCP
  • When Vite React SPA is ideal (auth dashboards) vs Next.js (public storefronts/marketing)
  • Production Pitfall Guard (Next.js Architecture: CSR vs SSR vs SSG vs ISR)
โ†’ What Topic Is Next: Next Topic 10.2: Next.js Project Setup (`create-next-app` with TypeScript & Tailwind)
Guide โ†’

Scaffolding with TypeScript, ESLint, Tailwind CSS, `src/app` directory, `next.config.ts`, `npm run dev` / `npm run build` route output symbols (`โ—‹ Static`, `ฦ’ Dynami...

Subtopics Covered (8):
  • Scaffolding with TypeScript
  • ESLint
  • Tailwind CSS
โ†’ What Topic Is Next: Next Topic 10.3: File-System Routing with the Next.js App Router
Guide โ†’

Folder segments (`app/products/page.tsx`), route groups `(marketing)` / `(shop)` without affecting URL paths, private `_components` folders

Subtopics Covered (8):
  • Folder segments (`app/products/page.tsx`)
  • Route groups `(marketing)` / `(shop)` without affecting URL paths
  • Private `_components` folders
โ†’ What Topic Is Next: Next Topic 10.4: Pages and Persistent Nested Layouts (`page.tsx` & `layout.tsx`)
Guide โ†’

Root `app/layout.tsx` (`<html>` and `<body>`), nested section layouts preserving state across sibling route navigations

Subtopics Covered (8):
  • Root `app/layout.tsx` (`<html>`
  • `<body>`)
  • Nested section layouts preserving state across sibling route navigations
โ†’ What Topic Is Next: Next Topic 10.5: Dynamic Routes and Typed Route Params (`[slug]` & `[...catchAll]`)
Guide โ†’

Dynamic folder `[slug]/page.tsx`, awaiting typed `params: Promise<{ slug: string }>` and `searchParams`, `notFound()` (`not-found.tsx`), `generateStaticParams` intro

Subtopics Covered (8):
  • Dynamic folder `[slug]/page.tsx`
  • Awaiting typed `params: Promise<{ slug: string }>`
  • `searchParams`
โ†’ What Topic Is Next: Next Topic 10.6: Navigation and Prefetching with `next/link` and `useRouter`
Guide โ†’

`<Link href="...">` automatic viewport prefetching, `usePathname()` active nav styling, `useRouter()` (`next/navigation`, NOT legacy `next/router`!) programmatic nav...

Subtopics Covered (8):
  • `<Link href="...">` automatic viewport prefetching
  • `usePathname()` active nav styling
  • `useRouter()` (`next/navigation`
โ†’ What Topic Is Next: Next Topic 10.7: React Server Components (RSC) Fundamentals
Guide โ†’

Why App Router components are Server Components by default: zero client JS bundle cost, direct `async/await` data access on server, no browser hooks/events

Subtopics Covered (8):
  • Why App Router components are Server Components by default: zero client JS bundle cost
  • Direct `async/await` data access on server
  • No browser hooks/events
โ†’ What Topic Is Next: Next Topic 10.8: Client Components (`'use client'`) for Interactivity
Guide โ†’

Adding `'use client'` directive at file top when using `useState`, `useEffect`, event handlers (`onClick`), Redux/Query hooks, or browser APIs

Subtopics Covered (8):
  • Adding `'use client'` directive at file top when using `useState`
  • `useEffect`
  • Event handlers (`onClick`)
โ†’ What Topic Is Next: Next Topic 10.9: Server vs Client Component Composition Boundaries
Guide โ†’

Serializability rule for props crossing Server -> Client boundary (plain JSON/primitives, NO functions/classes!), passing Server Components as `{children}` into Clie...

Subtopics Covered (8):
  • Serializability rule for props crossing Server -> Client boundary (plain JSON/primitives
  • NO functions/classes!)
  • Passing Server Components as `{children}` into Client wrappers
โ†’ What Topic Is Next: Next Topic 10.10: Server Data Fetching vs Client Interactive Fetching
Guide โ†’

Async Server Component `fetch()` + `Promise.all` parallel waterfalls prevention vs client-side TanStack Query/SWR for live interactive search/polling

Subtopics Covered (8):
  • Async Server Component `fetch()` + `Promise.all` parallel waterfalls prevention vs client-side TanStack Query/SWR for live interactive search/polling
  • Production Pitfall Guard (Server Data Fetching vs Client Interactive Fetching)
  • Hands-On Verification (Server Data Fetching vs Client Interactive Fetching)
โ†’ What Topic Is Next: Next Topic 10.11: Streaming Loading UI (`loading.tsx` and `<Suspense>`)
Guide โ†’

Instant route transitions via `loading.tsx` and granular `<Suspense fallback={<ReviewsSkeleton />}>` streaming slow sections without blocking primary content

Subtopics Covered (8):
  • Instant route transitions via `loading.tsx`
  • Granular `<Suspense fallback={<ReviewsSkeleton />}>` streaming slow sections without blocking primary content
  • Production Pitfall Guard (Streaming Loading UI (`loading.tsx` and `<Suspense>`))
โ†’ What Topic Is Next: Next Topic 10.12: Route Error Handling (`error.tsx` and `global-error.tsx`)
Guide โ†’

Creating `'use client'` `error.tsx` boundaries receiving `{ error, reset }`, recovering route segments without losing the persistent top navbar

Subtopics Covered (8):
  • Creating `'use client'` `error.tsx` boundaries receiving `{ error
  • Reset }`
  • Recovering route segments without losing the persistent top navbar
โ†’ What Topic Is Next: Next Topic 10.13: Static and Dynamic Metadata for Technical SEO
Guide โ†’

Exporting `export const metadata: Metadata` and `export async function generateMetadata({ params })` for dynamic `<title>`, `description`, `openGraph`, and `alternat...

Subtopics Covered (8):
  • Exporting `export const metadata: Metadata`
  • `export async function generateMetadata({ params })` for dynamic `<title>`
  • `description`
โ†’ What Topic Is Next: Next Topic 10.14: Frontend Production Build Pipeline (`tsc -b && vite build`)
Guide โ†’

Difference between Vite dev server (native ESM) vs Rollup production build (`tsc -b` strict typecheck -> tree-shaking -> minification -> CSS extraction -> content-ha...

Subtopics Covered (8):
  • Difference between Vite dev server (native ESM) vs Rollup production build (`tsc -b` strict typecheck -> tree-shaking -> minification -> CSS extraction -> content-hashed `/dist/assets/*`)
  • Production Pitfall Guard (Frontend Production Build Pipeline (`tsc -b && vite build`))
  • Hands-On Verification (Frontend Production Build Pipeline (`tsc -b && vite build`))
โ†’ What Topic Is Next: Next Topic 10.15: Vite Build Configuration (`vite.config.ts`, Aliases, Chunks & Sourcemaps)
Guide โ†’

Path alias `@/* -> ./src/*` (synced in `tsconfig` + `vite.config.ts`), `build.sourcemap: 'hidden'` for Sentry without exposing source code publicly, chunk size warni...

Subtopics Covered (8):
  • Path alias `@/* -> ./src/*` (synced in `tsconfig` + `vite.config.ts`)
  • `build.sourcemap: 'hidden'` for Sentry without exposing source code publicly
  • Chunk size warnings & `manualChunks`
โ†’ What Topic Is Next: Next Topic 10.16: Deploying Frontend Applications to Vercel & Netlify (with SPA Rewrites)
Guide โ†’

Connecting GitHub repo for automatic `main` production deploys + PR Preview deployments, configuring `vercel.json` (`rewrites: [{ "source": "/(.*)", "destination": "...

Subtopics Covered (8):
  • Connecting GitHub repo for automatic `main` production deploys + PR Preview deployments
  • Configuring `vercel.json` (`rewrites: [{ "source": "/(.*)"
  • "destination": "/index.html" }]`) & `public/_redirects`
โ†’ What Topic Is Next: Next Topic 10.17: Custom Domains, DNS (`A` / `CNAME`) and Automatic HTTPS/TLS
Guide โ†’

Apex domain `A` record vs subdomain `CNAME` (`shop.yourdomain.com`), Letโ€™s Encrypt automated TLS provisioning, HTTP -> HTTPS redirect & HSTS, updating backend CORS o...

Subtopics Covered (8):
  • Apex domain `A` record vs subdomain `CNAME` (`shop.yourdomain.com`)
  • Letโ€™s Encrypt automated TLS provisioning
  • HTTP -> HTTPS redirect & HSTS
โ†’ What Topic Is Next: Next Topic 10.18: Managing Production, Preview and Local Environment Variables
Guide โ†’

Configuring separate `Development`, `Preview` (staging API), and `Production` environment variables in Vercel/Netlify dashboards; why build-time env changes require...

Subtopics Covered (8):
  • Configuring separate `Development`
  • `Preview` (staging API)
  • `Production` environment variables in Vercel/Netlify dashboards
โ†’ What Topic Is Next: Next Topic 10.19: GitHub Actions CI/CD Pipeline & Production Error Monitoring (Sentry Basics)
Guide โ†’

Authoring `.github/workflows/ci.yml` (`actions/checkout`, `actions/setup-node` with `cache: 'npm'`, `npm ci`, `npm run lint`, `npm run typecheck`, `npm test -- --run...

Subtopics Covered (8):
  • Authoring `.github/workflows/ci.yml` (`actions/checkout`
  • `actions/setup-node` with `cache: 'npm'`
  • `npm ci`
โ†’ What Topic Is Next: Module 10 Capstone โ†’ End-of-Course Live Client Project: Complete React.js Developer Course (with HTML5, CSS3, Tailwind, JS & TypeScript) โ€” Enterprise Client Production Platform

Architect, optimize, and test a production-style React + TypeScript E-Commerce Storefront featuring product catalog discovery, multi-facet filters, sorting, instant search, product variant details, Redux Toolkit cart & coupon engine, optimistic wishlist, authentication, validated multi-step checkout, order history, code-splitting, and automated Vitest + React Testing Library tests.

โ€ข Product Listing with category, price-range, rating, and in-stock filters + sorting (`Price`, `Rating`, `Popularity`) + URL query synchronization.
โ€ข Debounced instant Search Autocomplete with keyboard navigation and highlighted matches.
โ€ข Product Details page with multi-image gallery, variant selector, stock guards, specs/reviews tabs, and related products.
โ€ข Redux Toolkit Shopping Cart (`addItem`, `updateQty`, `removeItem`, `applyCoupon`, memoized `createSelector` GST & shipping breakdown, `localStorage` persistence).
โ€ข Wishlist toggle with instant UI feedback and one-click "Move to Cart".
โ€ข Customer Login/Register + 3-Step Validated Checkout (Address -> Payment Method -> Order Review) + Order History screen.
๐ŸŽ“ Like the 10-Module (231-Topic) Syllabus? Experience It Live First!

Attend Your 1st Weekend Live Class Free With Active Working IT Professionals

Verify your email OTP in 15 seconds to receive the live Zoom/Meet demo link, complete 10-module PDF, and personalized roadmap for Complete React.js Developer Course (with HTML5, CSS3, Tailwind, JS & TypeScript).

๐Ÿ“„ Download Syllabus PDF
Hands-On Industry Stack โ€ข 10 Core Technologies

Technologies, Frameworks & Tools You Will Master

โœ“ Taught Live by Working IT Professionals
Semantic HTML5 & A11y Logo

Semantic HTML5 & A11y

Semantic Markup
CSS3 & Tailwind CSS Logo

CSS3 & Tailwind CSS

Design System
Modern JavaScript ES6+ Logo

Modern JavaScript ES6+

Web Language
TypeScript 5 Logo

TypeScript 5

Typed Language
React 19, Hooks & Suspense Logo

React 19, Hooks & Suspense

Frontend UI
Next.js 15 App Router Logo

Next.js 15 App Router

SSR & Full-Stack
Vitest & Playwright E2E Logo

Vitest & Playwright E2E

Test Automation
Git, CI & Edge Deployment Logo

Git, CI & Edge Deployment

Version Control
LeetCode Problem Solving Logo

LeetCode Problem Solving

Trainer Coding Prep
HackerRank Coding Prep Logo

HackerRank Coding Prep

Trainer Coding Prep
Course Overview โ€ข Freshers & Working Pros

What You Will Learn & Why It Matters on Real Jobs

๐Ÿ‘จโ€๐Ÿ’ป 100% Working IT Pro Trainers
What Is This Course?

Complete React.js Developer Course (with HTML5, CSS3, Tailwind, JS & TypeScript) teaches you how modern tech companies design, build, test, and deploy reliable Frontend & React Ecosystem software using HTML5 & Semantic A11y, CSS3, Flexbox & Grid, Tailwind CSS, JavaScript ES6+ & Async/DOM, TypeScript 5 (Strict) โ€” explained in clear everyday language before writing real production code.

Who Should Join?

Suitable for both complete beginners (guided step-by-step from Day 1 setup and core logic) and technical students/working professionals aiming for production architecture mastery.

Key Engineering Capabilities You Will Build:

  • โ€ข Build responsive, accessible layouts from scratch using Semantic HTML5, CSS3 Flexbox/Grid, and Tailwind CSS.

    Purpose: Directly required by Frontend & React Ecosystem engineering teams to ship reliable client systems.

  • โ€ข Write clean, bug-free JavaScript ES6+ (`map`/`filter`/`reduce`, closures, `async/await`) and zero-`any` TypeScript 5 interfaces & generics.

    Purpose: Directly required by Frontend & React Ecosystem engineering teams to ship reliable client systems.

  • โ€ข Architect production React applications with Custom Hooks, React Router, React Hook Form + Zod, Redux Toolkit, and TanStack Query.

    Purpose: Directly required by Frontend & React Ecosystem engineering teams to ship reliable client systems.

  • โ€ข Optimize Core Web Vitals, understand Next.js SSR/RSC fundamentals, write Vitest + RTL tests, solve React machine-coding rounds, and deploy live on Vercel.

    Purpose: Directly required by Frontend & React Ecosystem engineering teams to ship reliable client systems.

  • โ€ข Automated Testing, Debugging & Quality Gates (HTML5 & Semantic A11y, CSS3, Flexbox & Grid, Tailwind CSS, JavaScript ES6+ & Async/DOM, TypeScript 5 (Strict))

    Purpose: Automated HTML5 & Semantic A11y, CSS3, Flexbox & Grid, Tailwind CSS, JavaScript ES6+ & Async/DOM, TypeScript 5 (Strict) test suites โ€ข Linting & static checks โ€ข Mentor Git pull-request reviews โ€” ensuring your code never breaks silently when real users hit edge cases.

  • โ€ข 100% Topic-Wise Timed Mock Tests, Spoken MockAttempt AI Viva & Live Client Production

    Purpose: Verify every single Complete React.js Developer Course (with HTML5, CSS3, Tailwind, JS & TypeScript) topic through timed MCQ exams and spoken technical interviews before deploying your Live Client Project.

Student Learning Outcomes (By End of Course):

Baseline: HTML5, CSS3, ES2023+, TypeScript 5.x, Vite 5/6, React 18/19, Tailwind CSS, Redux Toolkit 2.x, TanStack Query 5.x & Vitest.
  1. 1. Build responsive, accessible layouts from scratch using Semantic HTML5, CSS3 Flexbox/Grid, and Tailwind CSS.
  2. 2. Write clean, bug-free JavaScript ES6+ (`map`/`filter`/`reduce`, closures, `async/await`) and zero-`any` TypeScript 5 interfaces & generics.
  3. 3. Architect production React applications with Custom Hooks, React Router, React Hook Form + Zod, Redux Toolkit, and TanStack Query.
  4. 4. Optimize Core Web Vitals, understand Next.js SSR/RSC fundamentals, write Vitest + RTL tests, solve React machine-coding rounds, and deploy live on Vercel.

Weekend-Only Live Batches

Taught live by active Working IT Professionals between 7:00 AM and 8:00 PM IST (choose any slot based on trainer availability).

Batch Available (Sat โ€“ Sun Only): 2 Hours / Day โ€ข 7:00 AM to 8:00 PM IST (choose any slot based on trainer availability)

Mon โ€“ Fri Guided Practice: Real GitHub repository builds, LeetCode/HackerRank coding & โ‰ฅ90% Mock/AI Interview gates.

BATCH-REAC-2026 ONGOING

Complete React.js Developer Course (with HTML5, CSS3, Tailwind, JS & TypeScript) โ€” Live Cohort

Weekend Live (Satโ€“Sun โ€ข 2h/Day โ€ข 7 AMโ€“8 PM IST) โ€ข 07:00 AM โ€“ 08:00 PM IST Flexible Live Slots

Starts: 21 Nov 2026

Eligibility

Prerequisites

  • โ€ข No prior HTML, CSS, JavaScript, TypeScript, or React experience required โ€” Stage 1 (Modules 1โ€“3) teaches all foundations from scratch!
  • โ€ข Basic computer & internet familiarity on a Windows, macOS, or Linux laptop (8 GB+ RAM recommended for smooth live coding labs).
  • โ€ข Ideal for B.Tech / BCA / MCA / B.Sc IT students, non-CS beginners, career switchers, and working developers upgrading to 2026 production standards.
Live Client Production Deployment & Verified Internship Showcase ๐Ÿš€ Live Client Production Project + Internship Letter
End-of-Course Production Deployment

Complete React.js Developer Course (with HTML5, CSS3, Tailwind, JS & TypeScript) โ€” Enterprise Client Production Platform

Role: Complete React.js Developer Course (with HTML5, CSS3, Tailwind, JS & TypeScript) Engineering Project Intern

After completing all 14 progressive hands-on module projects during live classes, students join our mentor-led Client Production Sprint to build, test, and deploy "Complete React.js Developer Course (with HTML5, CSS3, Tailwind, JS & TypeScript) โ€” Enterprise Client Production Platform" to live cloud production โ€” earning an Official Verified Internship Letter detailing their exact technical contributions.

Domain: Live Enterprise Frontend & React Ecosystem Client Engagement โ€ข Infra: HTML5 & Semantic A11y, CSS3, Flexbox & Grid, Tailwind CSS, JavaScript ES6+ & Async/DOM, TypeScript 5 (Strict) โ€ข Git CI/CD + Automated Testing + Live HTTPS Cloud Production

Certified on Your Official Internship Confirmation Letter:

  • โœ“ Translated live client functional and non-functional requirements into modular HTML5 & Semantic A11y, CSS3, Flexbox & Grid, Tailwind CSS, JavaScript ES6+ & Async/DOM, TypeScript 5 (Strict) production architecture.
  • โœ“ Implemented core application modules, input validation, security hardening, and optimized data/state workflows.
  • โœ“ Completed peer Git pull-request code reviews, automated verification suites, and edge-case debugging sprints.
  • โœ“ Deployed the verified build to live client production with monitoring, documentation, and mentor sign-off.
ID: MAA-2026-XXXX QR + BARCODE

1. Graduation Certificate

Certifies REAC module mastery, Mock/AI Viva scores & GitHub repos.

ID: MAA-INT-XXXX VERIFY 24ร—7 โ†’

2. Client Internship Letter

Employer BGV-verifiable proof of live production deployment contributions.

Industry Career Scope, Annual CTC Packages & Next-Course Job Pathways

Career Scope, Salary Packages & What You Should Learn Next for Better Job Opportunities

See the exact job positions and realistic salary packages unlocked by Complete React.js Developer Course (with HTML5, CSS3, Tailwind, JS & TypeScript), plus which specialized MockAttempt Academy courses to pair next to qualify for higher-paying multi-stack engineering roles.

Direct Job Roles After This Course
๐Ÿ’ผ Complete React.js Developer Course (with HTML5, CSS3, Tailwind, JS & TypeScript) Developer ๐Ÿ’ผ Associate Frontend & React Ecosystem Engineer ๐Ÿ’ผ Software Development Engineer (SDE-1)
Top Hiring Industries & Domains
๐Ÿข Global SaaS & Product Companies ๐Ÿข FinTech & Digital Banking ๐Ÿข Cloud & AI Platforms ๐Ÿข Global Capability Centers (GCCs) ๐Ÿข Enterprise Engineering Consulting
Fresher / Entry-Level (0โ€“1 Yr) โ‚น4.5 โ€“ โ‚น8.5 LPA โ€ข $55Kโ€“$85K Global

Hands-on module projects, topic-wise MCQ mocks, AI interviews & live client internship proof.

Mid-Level Product Engineer (1โ€“3 Yrs) โ‚น9.5 โ€“ โ‚น19.0 LPA โ€ข $85Kโ€“$130K Global

Production architecture, performance tuning & automated testing mastery.

Senior / Multi-Stack Specialist (3โ€“6+ Yrs) โ‚น20.0 โ€“ โ‚น38.0+ LPA โ€ข $130Kโ€“$185K+ Global

Unlocked by combining this course with the recommended next courses below.

What Should You Learn Next โ€” & For Which Job Position?

Recommended Next Courses from Our Catalog to Multiply Your Job Eligibility & CTC

CAREER UPGRADE PATH #1

Full-Lifecycle Frontend & React Ecosystem Engineer

โ‚น10.0 LPA โ€“ โ‚น24.0 LPA ($85Kโ€“$135K Global)

Why Learn Next (For What Purpose): Pair Complete React.js Developer Course (with HTML5, CSS3, Tailwind, JS & TypeScript) with complementary specialist tracks or use your 30-Day 100% Tuition Credit toward our 6-Month Job-Guarantee* Career Program.

Curriculum Governance & E-E-A-T Faculty Review

Architected & Audited by Ravi Shankar Mishra (Founder & Lead Architect, MockAttempt Academy) & Active Production Engineers

Every module, GitHub lab, 50-MCQ assessment, and 4-axis Spoken AI Viva in Complete React.js Developer Course (with HTML5, CSS3, Tailwind, JS & TypeScript) is reviewed quarterly against live enterprise hiring bars and taught in clear English on weekends by active Working IT Professionals.

Program Questions

Frequently Asked Questions โ€” Complete React.js Developer Course (with HTML5, CSS3, Tailwind, JS & TypeScript)

No! Modules 1โ€“3 build your complete HTML5, CSS3 Flexbox/Grid, Tailwind CSS, Modern JavaScript ES6+ (closures, promises, async/await, DOM), and strict TypeScript 5 foundations right inside the course before advancing into React, Hooks, Redux Toolkit, TanStack Query, Next.js fundamentals, and Vitest testing.

โ‚น3,999 All-Inclusive (Incl. 18% GST), payable upfront or in 2 ร— โ‚น2,000 splits, with 100% 30-day fee credit if you upgrade to our โ‚น15,000 Frontend Developer Career Program (FDCP).

Yes โ€” you practice 40 curated JavaScript & React machine-coding problems and deploy a complete React + TypeScript + Redux Toolkit E-Commerce Storefront live on Vercel/Netlify.

โšก Free 1st Live Demo โ€ข All-Inclusive Fees (Incl. 18% GST)

Book Free Live Demo or Reserve Batch Seat

+ Add Background, Location or Questions (Optional)