Again subjective, I use fetch Js. Used to use jQuery but switched over.
Why do you use AlpineJS? Doesn't seem great.
Hey there!
So I've looked at AlpineJS and I can't see it being that great when used on bigger projects - which would be probably the majority of projects.
The issue I have is that you're basically writing JS inside HTML file basically - its basic Vanilla JS, except instead of selecting elements via the DOM, you do it the alpine way and keep all of the logic in the HTML.
While you can make a true/false dropdown easy, and that is indeed nice, overall I don't see why you woudlnd't do that like bootstrap does when handling JS.
Laravel comes with alpine but that doesn't mean if they do it its the best way and everyone should... I just always remove it.
I googled more about Alpine and google, and even they themself say Alpine is great for small projects - and I can agree on that. But most projects aren't small, which makes no sense too use Alpine.
And yes, I watched the Laracast Alpine tutorial - and that made no sense to me why would someone use Alpine JS.
Plus on something I was coding, I had to vanilla code it anyway - Alpine seems to be bloading and might as well just select things with the DOM and do in in separate file, keep the visual code clean etc...
It didn't even seem THAT flexible in some instances while using Laravel with blade components.
This isn't to do with me not being a Senior either, talked with a top tier senior and he agrees- well, he said that first I went ahead tried to use Alpine anyway.
Just wondering what is your opinion on this as well.
Why do you use it, or why not? What is your experience with it so far etc...
Please or to participate in this conversation.