How The Demos Work
The demos on the TinyBase site deserve a little explanation.
Rather than trying to keep prose and running demo in sync, something interesting here is that the code in the guide is exactly what is compiled together at build time to create the running demo.
srcdoc attribute) so that it is nicely sandboxed.
When a demo is an enhancement to an existing one (such as the Todo App v2 (indexes) demo), the guide will contain diffs. These are also actively applied to the previous code. It's a little tricky to make sure the diffs always apply cleanly when you update preceding demo guides, but it reduces repetition.