3 ms·
Yes, templates are different. That's why I said that they're "specific DSLs ... compiled into a JS render function" Anyway there is no other abstraction. Hooks
by manigandham 5y ago
Yes, templates are different. That's why I said that they're "specific DSLs ... compiled into a JS render function"
Anyway there is no other abstraction. Hooks and composition APIs aren't magic, they're functions that you can write yourself. It's basic property change notifications but wrapped up in various levels of automation. Vue's object API can definitely seem messy but the new composition APIs in Vue 3 is standard JS syntax. Maybe it would be helpful to see the code yourself: https://github.com/vuejs/vue-next/tree/master/packages/reactivity https://github.com/vuejs/vue-next/tree/master/packages/react...
- xrd 5y agoI had heard things were improving. Thanks for sending providing a place where I can learn more. (This is a complaint about React, but...) I really find hooks/effects to be pretty magical. Keeping track of how many times a hook/effect runs is really difficult for me. It looks so simple at first, but there is a lot going under the hood to figure out how often they run.