# recipes/dom

A todo page, built on dom, that checks what it did to the tree.

The job is an ordinary one: a list of todos in a document, a filter, a count, a form. What makes it a proof rather than a demo is that every edit asserts the exact DOM operations it caused against the recording host, the page renders to markup with no browser, and that markup is hydrated in place with the server nodes kept. If the binding ever did more work than an edit calls for, or rebuilt what it should adopt, this program would exit nonzero.

```sh
node recipes/dom/main.ts
```

## Files

- [`main.ts`](/docs/recipes/dom/files/main.ts)
