Skip to content
05The Code Museum

View source

Thirteen chapters in how the Web was built, each with a working example you can edit. Your code runs in a sandboxed frame with no access to this museum, your storage or your cookies.

2010 onward

Component-based frameworks

AngularJS (2010), React (2013) and Vue (2014) organised interfaces as reusable components that re-render from state.

To stay offline and dependency-free, this example uses the browser's own Web Components standard, which follows the same idea.

Tab inserts spaces · press Esc then Tab to leave the editor

Live preview · sandboxed

The preview iframe uses sandbox="allow-scripts allow-modals" without allow-same-origin: scripts run, but in an opaque origin isolated from Webvolution.