Level 1 · Entry Foundations¶
Goal: go from an empty folder to a small, working React app you understand line by line. By the end of this level you will know what a component really is (a function that returns a description of UI), why state updates trigger a re-render, and how data moves from parent to child through props.
Modules¶
- Setup with Vite & Your First Component — Node, Vite, the project layout, and what
createRootdoes - JSX in Depth — what JSX compiles to, expressions vs statements, fragments, attribute rules
- Components & Props — splitting UI into functions, props as read-only inputs, defaults
- State with useState — state as a snapshot, updater functions, immutable updates
- Handling Events — synthetic events, passing handlers,
preventDefault, event propagation - Conditional Rendering, Lists & Keys —
&&, ternaries,map, and why keys matter - Forms & Controlled Inputs — controlled vs uncontrolled, validation, submit handling
- useEffect Basics — synchronizing with the outside world, dependencies, cleanup
- Styling React Apps — plain CSS, CSS Modules, inline styles, and utility classes compared
- Project — Expense Tracker — everything above, combined into one app with persistence
What you need before starting¶
- Comfort with modern JavaScript:
const/let, arrow functions, destructuring, spread (...), template literals,Array.prototype.map/filter, and ES modules. - Node.js installed (an LTS release) and a code editor.
- A browser with the React Developer Tools extension is helpful but optional.
By the end of this level you will be able to build a single-page app with several
components, local state, user input, list rendering, and data that survives a page
refresh via localStorage.