Re:Vue.js is Wikimedia Foundation's future JavaScript framework
by ducharmdev on Wednesday August 04, 2021 @11:22AM
(#28062054)
I think this puts it in perspective more; if I understand what you're saying correctly, then setup essentially gives you more fine-grained control over Vue's reactivity system, as opposed to just doing it all for you when a component is created. Which allows you to more easily pull out & consolidate reusable logic as needed.
It is kinda nice making reactive state really explicit like that; I like Svelte's approach for similar reasons.
It is kinda nice making reactive state really explicit like that; I like Svelte's approach for similar reasons.