Render out observable
dy opened this issue · comments
Just found out this awesome repo. Was collecting same cases in spectjs.
FYI - spect/h can render observables to HTML directly, probably in a very if not the most efficient way. If that's of any help.
Wow great, I didn't see that library before. Do you think it makes sense to add an example to the usage section in the readme and integration tests to make sure it works flawlessly?
Looking forward. Something like
import h from 'spect/h.js'
import {animationFrame} from 'subscribable-things.js'
document.body.appendChild(h`<div>Frame #${animationFrame()}</div>`)
Do you have an ESM bundle? Seems that latest bundle has UMD format, no?
Hoped I can just codepen the case.
UPD. Codepen: https://codepen.io/dyv/pen/XWazNmy
There should be a UMD bundle at /build/es5
but there is also an ESM bundle at /build/es2019
.
Right, but it doesn't seem to be a bundle (module.js), just a set of modules, right?
Yes, that's correct. Sorry for the confusion. It's transpiled but it's not a bundle (aka not a single file).