4 ms·
This is lovely for using React or Preact in Observable! https://beta.observablehq.com/@mbostock/hello-htm https://beta.observablehq.com/@mbostock/hello-htm We
by mbostock 8y ago
This is lovely for using React or Preact in Observable!
https://beta.observablehq.com/@mbostock/hello-htm https://beta.observablehq.com/@mbostock/hello-htm
We have our own lit-html-inspired html tagged template literals that render directly to DOM, but it’s nice to see HTM’s improved support for function attributes (e.g., onclick), spread attributes, etc.
- spankalee 8y agoI love that work! Eventually we'll get some great parts of this approach standardized, starting with Template Instantiation, and we'll finally have a great way to create and update lots of DOM from data right in the platform. A future d3 based on that would be very awesome too :)