3 ms·
You have already excluded svelte, so maybe you need something more plug and play, but it is lightweight, fast and quick to adopt. It works great even for single
by alserio 5y ago
You have already excluded svelte, so maybe you need something more plug and play, but it is lightweight, fast and quick to adopt. It works great even for single dynamic components embedded in static html.
But it all depends of on what you need js at all.
Since nobody have said it yet, don't forget to look at Solid, it's really a njce gem
- omgmajk 5y agoI haven't really excluded svelte but looking at it, it seems to be a lot of tooling for the (pretty) minimal work I need to do. However, I was initially debating with myself if svelte or vue would be the right choice. Gonna check solid out, thanks for the suggestion!
- alserio 5y agoWell, yes you'd need a compiler step, usually done with rollup or webpack. If you are aiming for a "no build step" setup you probably have to skip all the jsx libraries too. Vue should still be a good choice, I haven't used vue 3 yet, but at least in vue 2 you could use it right in the browser. Otherwise mithril is cool. Edit: about solid, the normal "mode" precompiles jsx, but i believe you can use it even without it a la hyperscript
- omgmajk 5y agoI would indeed prefer to be without such a step. Thanks for the info!