Converted from http://plnkr.co/edit/kHrrvjSVTjIaiZpPdbbG?p=preview
See main.js for two ways to do it. To run:
- clone the gist into a web servable dir
npm install- open index.html (use
http://notfile://)
Note: Although scheduling is configurable in most.js, we haven't yet exposed an API for it. In this case, it's simple enough just to use requestAnimationFrame directly, since it's only being used at the render boundary.