Update State Variables Automatically
AlpineJS has a global state management system through its global variable named store.
We can store a variable named total for a page loaded in the browser like this :
document.addEventListener('alpine:init', () =>
{
Alpine.store('global_data',
...
alpinejs.in2 min read