Course · HTML · CSS · JavaScript · React
Frontend Development: HTML to React
Start with a blank file, finish with a real React app. Build a calorie calculator three ways — static HTML and CSS, vanilla JavaScript, then React.
Course content
32/32 published- Lessons
- 32
- Parts
- 4
- Level
- Beginner
- Build
- Calorie calculator
What you'll build
One calculator, three versions
Static
HTML structure and CSS styling. It looks real — it just doesn't do anything yet.
JavaScript
Wire up the form, calculate totals, and keep the food log in localStorage.
React
Rebuild the same app with components and state. Same result, cleaner mental model.
Syllabus
Every lesson, in order
Each lesson is short and builds on the one before it. No skipping — the next lesson assumes you finished the last one.
Part 1
HTML
Structure. Headings, links, forms, tables, and the skeleton of a real page.
- 01How the web works (and your first page)6 min read · HTML · setup · no code
- 02Text, links, images, and lists7 min read · HTML · basics
- 03Semantic structure: build the skeleton6 min read · HTML · structure · accessibility
- 04Forms and inputs: the calculator's controls7 min read · HTML · forms · accessibility
- 05HTML checkpoint: build the calculator page8 min read · HTML · build
Part 2
CSS
Style. Layout, color, type, responsive design, and the small details that make it feel finished.
- 06CSS basics: selectors, cascade, and the box model7 min read · CSS · basics
- 07Flexbox: lay things out in a row7 min read · CSS · layout · flexbox
- 08Grid and responsive design8 min read · CSS · layout · grid · responsive
- 09Color, type, spacing, and design tokens7 min read · CSS · design · custom properties
- 10States, transitions, and polish6 min read · CSS · polish · accessibility
- 11CSS checkpoint: make it look real8 min read · CSS · build
Part 3
JavaScript
Behavior. Data, logic, the DOM, events, storage, and talking to an API.
- 12JavaScript basics: values, variables, and strings7 min read · JavaScript · basics
- 13Logic: conditions, comparisons, and functions8 min read · JavaScript · logic · functions
- 14Arrays and objects: the data shapes8 min read · JavaScript · data · arrays
- 15Loops and array methods7 min read · JavaScript · loops · arrays
- 16The DOM: select, read, change8 min read · JavaScript · DOM
- 17Events and forms: make it react8 min read · JavaScript · events · forms
- 18State and localStorage: remember it8 min read · JavaScript · state · localStorage
- 19Async and fetch: talking to an API9 min read · JavaScript · API · async
- 20Capstone part 1: calculator logic9 min read · JavaScript · build · functions
- 21Capstone part 2: the working calculator12 min read · JavaScript · build · state
Part 4
React
Components. State, props, effects, and the same calculator rebuilt as a modern app.
- 22Why React? The same calculator, a new mental model7 min read · React · concept
- 23Setup: Vite, React, and your first component8 min read · React · setup · Vite
- 24Components and props9 min read · React · components · props
- 25State and events with useState9 min read · React · state · events
- 26Lists, keys, and conditional UI7 min read · React · rendering · lists
- 27Forms and derived values8 min read · React · forms · state
- 28Lifting state and designing the component tree9 min read · React · state · components
- 29useEffect and localStorage9 min read · React · effects · localStorage
- 30Fetching data in React9 min read · React · API · effects
- 31Capstone part 1: plan the React calculator8 min read · React · build · planning
- 32Capstone part 2: finish, deploy, and what's next10 min read · React · build · deploy