4 ms·
Sure you can use plain JS, but then you don’t get async/await, destructuring, module system, type checking, JSX, and countless other modern affordances that mak
by srgpqt 7y ago
Sure you can use plain JS, but then you don’t get async/await, destructuring, module system, type checking, JSX, and countless other modern affordances that make writing JS more palatable. If you can stomach OldJS, then yeah, none of this has much use for you.
- BlueTemplar 7y agoWell, last time I checked, you could use a lot of these out of the box, as long as you didn't mind dropping support for old Internet Explorer versions?
- Drdrdrq 7y agoA lot of these, but not all (JSX for example). And then you have to worry about support - caniuse is great help, but it gets very tiring. But to me the main benefit is something else. React & co. let you define the state and then rendering based on that. It is incredible what this means for code maintainability... Try it, it really is worth the effort.
- BlueTemplar 7y agoI've since decided to boycott JavaScript as a developer, and to block it everywhere I could as a user. (And rendering should be decided by the user's browser.)