3 ms·
In their side-by-side, they use syntax conventions from 4 years ago for React (class based components and even using var to declare variables) while using the l
by brink 6y ago
In their side-by-side, they use syntax conventions from 4 years ago for React (class based components and even using var to declare variables) while using the latest syntax conventions for Stencil.
How is that a fair comparison?
- mhd 6y agoOveruse of still-not-standardized decorators seems like "4 years ago", too. Just recently MobX moved away from them for that reason. Also "let main, footer" vs "var footer; var main;" doesn't make it look good for either side. And in the end being better than React isn't that hard. There have been plenty of frameworks that had better performance and/or better DX, without even getting into holy-war differences (e.g. JSX vs. templates). But you hardly work with a view library alone, and so you have to consider the infrastructure and the developer pool (which shouldn't matter for technical reasons, but matters for CV reasons).
- deleted 6y ago[deleted]
- Aeolun 6y ago> class based components I don’t think those are a great example. Class based components are still very much used in 2020.
- yoava 6y agoI have taken the Todo mvc React example. While old, it is still valid, and a syntax that is used in quite a few projects. If you believe it is obsolete, please do a Todo mvc React example with functional components and I commit to try and use stencil functional component syntax to create a valid comparison.