Show HN: Mosaic – A declarative, front-end JavaScript library for building UIs
github.com
github.com
Would love to see some demos of this library.
edit: update link
https://jsfiddle.net/authman2/kdfzL2m5/39/embedded/js,html,r... https://jsfiddle.net/authman2/e8nuydLo/39/embedded/js,html,r... https://jsfiddle.net/authman2/yfhsxrcm/35/embedded/js,html,r...
* I view vue/react/etc as a sort of polyfill for webcomponents.
* I also look at JSX and Vue templating as just that -- programmatic templates that serve as a guideline for the HTML they create.
That's what lets me sleep at night.
Once you start modifying HTML from JS enough, you start to realize the JS counts as view logic just like the template does. So the division of concerns changed from View (HTML template)/Controller (JS) to View (dynamic, written in JS)/Data (also likely JS).
The thing is, people were effectively writing HTML in JS before too, it's just that it looked like `el.style.color = 'red'` instead of `<div style={{color: 'red'}}>`.
1. How mature is it? My assumption is that it’s not mature, in which case it’s more credible if the README says so.
2. What would be the reason to use this instead of, say, lit-html or Preact or Mithril.js?