I’ve run into an issue where I get a TypeError: Cannot read property 'getContext' of null when the page first loads, but as soon as you run the code again it works fine.
Sure, but you can use normal references in regular JavaScript, too, so there shouldn’t be a strong reason to prefer document.querySelector to grab a reference to the example canvas versus using a literal reference to example. And by using a reference rather than selecting through the DOM, Observable will track the references automatically.