How React, Vue, and Angular Work – Core Principles in One File
1–10 of 23 posts
Re: How React, Vue, and Angular Work – Core Principles in One File
#2Re: How React, Vue, and Angular Work – Core Principles in One File
#3The Vue/Angular demo files make use of `new Proxy()`. To the devs knowing these frameworks: is that best practice, or asked differently, are these representative examples?
Re: How React, Vue, and Angular Work – Core Principles in One File
#4The Vue/Angular demo files make use of `new Proxy()`. To the devs knowing these frameworks: is that best practice, or asked differently, are these representative examples?
Angular code wouldn't use any of these techniques:
- the use of Proxy()
- calling compile(),
- using a querySelector to bind elements
- Manually wiring up click handlers
But, I'm not sure that's what the author is trying to do -- I think they're trying to show what is going on under the hood, coded in pure JS.In that context, it's probably relevant to show this (assuming it's indicative of what Angular actually does -- of that I'm less sure)
Re: How React, Vue, and Angular Work – Core Principles in One File
#5Re: How React, Vue, and Angular Work – Core Principles in One File
#6The Vue/Angular demo files make use of `new Proxy()`. To the devs knowing these frameworks: is that best practice, or asked differently, are these representative examples?
Re: How React, Vue, and Angular Work – Core Principles in One File
#7The Vue/Angular demo files make use of `new Proxy()`. To the devs knowing these frameworks: is that best practice, or asked differently, are these representative examples?
Vue switched to proxies in v3. They haven’t had great browser support for a very long time, and if I remember correctly, polyfilling them was difficult.
Re: How React, Vue, and Angular Work – Core Principles in One File
#8The Vue/Angular demo files make use of `new Proxy()`. To the devs knowing these frameworks: is that best practice, or asked differently, are these representative examples?
Proxies work across all mainstream browsers. Only the rare IE holdout would be a problem.
Re: How React, Vue, and Angular Work – Core Principles in One File
#9Earlier quoted context omitted.
Proxies work across all mainstream browsers. Only the rare IE holdout would be a problem.
There are probably still people here who use IE or browsers whose names no one remembers and only 3 people in the world use.
Re: How React, Vue, and Angular Work – Core Principles in One File
#10The Vue/Angular demo files make use of `new Proxy()`. To the devs knowing these frameworks: is that best practice, or asked differently, are these representative examples?
Proxies work across all mainstream browsers. Only the rare IE holdout would be a problem.