Jump to content

Draft:Alpine.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by DaniloPoleno (talk | contribs) at 17:02, 8 October 2024. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.


Alpine.js - is JavaScript framework for work with user interface. Alpine.js is easy to learn framework and him often compare with Vue.js and react, but they more harder than Alpine.js. With Alpine.js you easy make events and work with DOM without manual updating. First version made in 2019.

Name Alpine.js
Type JavaScript framework
Developer Caleb Porzio
First version 2019
Latest version June 18, 2024; v3.14.1
License MIT
Usage Dynamic interaction with DOM, minimal alternative Vue.js

Code examples

Easy counter on Alpine.js:

<div x-data="{ count: 0 }">
    <button x-on:click="count++">Increment</button>
 
    <span x-text="count"></span>
</div>

Alpine.js website

Alpine.js code on Git Hub