Frontend explained
What happens between the HTML a server sends and the page you can click: the tree the browser builds, and the code that keeps changing it.
Every frontend concept
The DOM
The live tree a browser builds from HTML, and how scripts change it.
OPEN LESSON
useEffect lifecycle
When React effects run, when they clean up, and what the dependency array decides.
OPEN LESSON
The CSS box model
Content, padding, border and margin: how a browser sizes every box on a page.
OPEN LESSON
The cascade and inheritance
How a browser picks one value when several CSS rules compete, and what is inherited.
OPEN LESSON
Flexbox
Three boxes in a row start at a size, then grow, shrink and align along two axes.
OPEN LESSON
Reflow vs repaint
Why changing a width costs the browser more than changing a colour.
OPEN LESSON
GPU compositing
How browsers split a page into layers and let the graphics chip move them.
OPEN LESSON
React Server Components
Components that run only on the server, and what the browser gets instead of their code.
OPEN LESSON
Props vs state
What a component is given, what it owns, and where shared data should live.
OPEN LESSON
Component lifecycle
A component appears, updates and is removed: what runs at each moment, and why.
OPEN LESSON
One-way vs two-way data binding
Which way data moves between a program and the screen, and what each direction costs.
OPEN LESSON
Signals and fine-grained reactivity
Values that know who reads them, so one change updates exactly what depends on it.
OPEN LESSON
Hydration
Server-sent HTML looks ready at once; a script then wires up the buttons.
OPEN LESSON
Service workers
A background script sits between page and network and answers from a cache.
OPEN LESSON
Web Workers
A two-second job freezes the page, until it moves to a second thread.
OPEN LESSON
Event bubbling and capturing
A click travels down to its target and back up, calling listeners in order.
OPEN LESSON
Canvas vs SVG
One circle drawn two ways: as a shape the browser remembers, or as pixels.
OPEN LESSON