3 ms·
I also love Alpine.js, but after implementing a dropdown with it, I'm thinking maybe sometimes it's too verbose especially combined with tailwind. https://gist
by egeozcan 5y ago
I also love Alpine.js, but after implementing a dropdown with it, I'm thinking maybe sometimes it's too verbose especially combined with tailwind.
https://gist.github.com/egeozcan/cdc90e290271f3ea4b6801dcf1aad719 https://gist.github.com/egeozcan/cdc90e290271f3ea4b6801dcf1a...
I should mention, I did want it to be quick and dirty (it's a prototype), but well, it could have been a bit more concise. Double set parentheses come from the templating system I use BTW, if it wasn't clear.
Being HTML oriented is very cool, and you get a lot of things for free, but I keep saying "oh this would have been much easier with react" a bit too much.