3 ms·
Vue has done this with macros generally focused on reducing boilerplate and improving DX. The `defineModel` macro from release 3.4[0] is a prime example where
by CharlieDigital 2y ago
Vue has done this with macros generally focused on reducing boilerplate and improving DX.
The `defineModel` macro from release 3.4[0] is a prime example where a really simple macro completely changes my workflow and makes refactoring complex components a breeze.
[0] https://chrlschn.dev/blog/2024/01/a-conceptual-model-of-state-in-vue-34-using-definemodel/ https://chrlschn.dev/blog/2024/01/a-conceptual-model-of-stat...