4 ms·
"Alpine.js offers you the reactive and declarative nature of big frameworks like Vue or React at a much lower cost. You get to keep your DOM, and sprinkle in be
by mozey 6y ago
"Alpine.js offers you the reactive and declarative nature of big frameworks like Vue or React at a much lower cost. You get to keep your DOM, and sprinkle in behavior as you see fit... Alpine doesn't use a virtual DOM. This implementation allows Alpine to stay rugged and use the real DOM to work its magic"
https://github.com/alpinejs/alpine https://github.com/alpinejs/alpine
- christophilus 6y agoI’ve seen Alpine, and it is interesting, but another bullet point in my wish list is vanilla JS; no new template language. JSX is just a small bit of sugar on top of vanilla JS, in my mind, so it is acceptable.
- andybak 6y agoFrom the brief glance I've taken at Alpine I didn't think it did have a template language - unless you refer to it's use of custom html attributes?
- mozey 6y agoAlpine has directives like x-if and x-for. For a lightweight templating library I would recommend https://pure-js.com https://pure-js.com. It's been around for ages. The PureJS directives take some time to get used to, but are quite powerful once you do.