What is the purpose of VanX? #222
Replies: 3 comments 4 replies
-
|
Beta Was this translation helpful? Give feedback.
-
I asked the same/similar question last week. I don't speak with any authority but one thing I think I've learned is that with However, with I haven't yet figured out why I need |
Beta Was this translation helpful? Give feedback.
-
So, to be clear, VanX doesn't add any functionality, it just adds some syntactic sugar so some things require less code? |
Beta Was this translation helpful? Give feedback.
-
I'm confused about the purpose of VanX.
In an earlier version of VanJS, there was
van.bind
which I used to bind an array to a repeating UI component. Then a new version came out,van.bind
no longer worked, and now we have VanX.So, there's
van.state
andvan.reactive
, which seems like two ways of doing the same thing.Can I still bind arrays to UI components without VanX? Is there some new way of whatever
van.bind
used to do? This just seems like a pretty core use case, and I'm confused why it was moved out of the base library.Beta Was this translation helpful? Give feedback.
All reactions