Alpine.js : Declare and React!
summary
Alpine.js claims a tiny footprint and no build step, exposing 15 attributes, six properties, three methods to add reactive components by dropping a script into any page; demos show a live markdown editor (client-side marked parser, X-html binding) that updates on keystroke with debounce 250ms, and an Unsplash image search wired to an input and image src binding. Transitions, x-show vs x-if DOM injection, and two‑way x-model all work as demonstrated.
AI-written summary · about
chapters (14)
- 0:00Introduction and speaker intro
- 1:48What is Alpine.js
- 3:50Why use Alpine.js
- 5:56Resources and setup
- 7:22Starting with state in Alpine
- 9:16Toggling visibility and transitions
- 11:45Nesting components
- 13:15Working with arrays and counters
- 15:40Shortcuts and conditional rendering
- 17:09Two-way data binding models
- 19:16Building a markdown editor
- 22:48Reactive event handling
- 24:34API integration demo
- 27:48Summary and Q&A
