An Alternative Approach to Computed Properties in Alpine.js
I previously wrote about using functions as computed properties in Alpine, but what if there was a better way?
Published 10 months ago | Updated 9 months agoI previously wrote about using functions as computed properties in Alpine, but what if there was a better way?
Published 10 months ago | Updated 9 months agoOne of Alpine's main selling points is that it provides most of the reactive goodies that Vue and React do at a much lower cost. What if you don't need reactivity for your site? Well, Alpine can definitely still fit into your stack!
Published 10 months ago | Updated 9 months agoOne feature that I love in Vue is computed properties. You access them in the same way as normal data properties, but you can dynamically generate the value. Let's take a look at how we can do this in Alpine.
Published 10 months ago | Updated 9 months ago