Programming Core

FRAMEWORK COURSE · REACT

React:不是背 Hooks,而是學「state 如何決定 UI」。

這條課建立在 JavaScript DOM/event/async 與 TypeScript contract 之上。你會用同一個 Course Dashboard,從 component render 一路做到 state ownership、controlled forms、list identity、effects、cancellation 與 client/server architecture。

PrerequisitesJavaScript 36–43;建議 TypeScript 91–95
Core chapters96–100 + 139–142
Cumulative projectCourse Dashboard

Course rhythm

Render ModelTraceState LabInteractionData FlowArchitecture

Modules

MODULE 1

Rendering Model

JSX build 後才變成 Browser 執行的 JavaScript;component 根據 input 計算 UI。

MODULE 2

State Ownership

props、state snapshot、functional update、immutable transition、single source of truth。

MODULE 4

External Synchronization

effect、dependencies、fetch、cleanup、AbortController、stale request。

MODULE 5

Application Architecture

component boundaries、derived state、client/server trust boundary。

Project spine

Course Dashboard

96Static course cards + component composition
97State owner + score updates
98Controlled add/remove/edit form
99Remote API loading + cancellation
100Final component/client/server architecture

Completion outcomes

開始 React CourseReact Runtime Lab接 Node / Backend