Replies: 2 comments
-
Hi @richcorb, Thanks for your interest in VanJS and thanks for your suggestion! In short, I believe the DX that you desired will probably go against the simplicity and the no-dependency principle of VanJS. Furthermore, since VanJS has passed the Thanks again for your interest in VanJS! |
Beta Was this translation helpful? Give feedback.
-
Thank you for explaining this! I'm still learning VanJS. |
Beta Was this translation helpful? Give feedback.
-
Thank you for VanJS! I've been using it for two days now and am having a lot of fun. I come from the Vue/AlpineJS world and so this is a different paradigm for me and I'm liking it so far. For fun I'm building a simple CMS based on Google Sheets. I've built it already using AlpineJS + UnoCSS and when I learned about VanJS I thought it would be fun to also build it using VanJS. And I was right! It was fun!
One thing that was not as easy as the rest was the reactivity piece. Here is my use case:
My idea, and I don't know if this is even remotely possible, is to combine van.state, vanX.reactive, and vanX.list with the end result being that there is one way to declare reactive state and that the state automatically carries through to the DOM without having to use vanX.list. That would be amazingly simple DX!
I compare VanJS loosely with AlpineJS. AlpineJS is based on Vue's reactivity engine and there is only one way to declare state and it is reactive everywhere by default.
What do you think? Is this possible? Is it worth it to consider?
Thanks again for VanJS!
Rich
Beta Was this translation helpful? Give feedback.
All reactions