chrisguttandin / subscribable-things

A collection of reactive wrappers for various browser APIs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

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).

Thanks again for making me aware of spect. It's really a great library. I'll close this as it has been addressed by #69 and #70.

Please feel free to open another issue for the missing ESM bundle if that's important for you.