Refactor Idea: Alpine can be added to custom elements, with Ponys you get single file vue-like components. #4866
Replies: 2 comments 1 reply
-
Hey, thats 3 things all working together. I agree it can be a powerful pattern. I think a basic example needs to be done somewhere to see. I think the pocketbase maintainer propped moving away form Svelte for the PB Admin too, so maybe this is viable pattern for that |
Beta Was this translation helpful? Give feedback.
-
No, not that. It is not necessary to use dubious technologies that 2.5 people use for such projects. At the same time, what is wrong with Svelte? In my opinion, using web components not to build a library of custom components is a bad idea. Applications built purely on them are too big. Style encapsulation causes a lot of code duplication in open source projects. For example, openremote. At the same time, the very customization of components when reusing them is possible only through css variables or a huge number of html attributes. Use more commonly known and supported technologies, e.g. React, Preact, Vue, Solid.js |
Beta Was this translation helpful? Give feedback.
-
Alpine.js in custom elements
Combined with Ponys design you get single file vue-like components. The Ponys source is tiny and very easy to understand.
Also HTMX 2.0 alpha 1 supports shadow dom.
Beta Was this translation helpful? Give feedback.
All reactions