3 ms·
Alpine.js uses <template> tags for if statements and for loops with stateful data. E.g. <template x-if="myVariable === 1"><div>1</div></template> Which is a si
by 65 1y ago
Alpine.js uses <template> tags for if statements and for loops with stateful data. E.g. <template x-if="myVariable === 1"><div>1</div></template>
Which is a simpler way of thinking about templates, rather than slots and fragments.