Re:Modern Javascript: Everything you missed over the last 10...
by kentor on Sunday May 16, 2021 @02:28AM
(#27171658)
Why hate JSX? There are lots of benefits to it, like debuggability and variable scoping rules are exactly those of javascript. Templating languages, on the otherhand, are not debuggable and have awkward scoping rules. And, they always feel broken in one way or another.
JSX is not magical which is what I appreciate the most about it.
Re:Modern Javascript: Everything you missed over the last 10...
by graftak on Sunday May 16, 2021 @03:57AM
(#27172001)
Don’t forget proper and full typescript support. Going back to vue (2) after doing tsx was like going back to jquery; loads more context switching and mistakes.
The ability to type `children` alone makes a world of difference.
I think React won because it had a more gradual learning curve than Angular and a didn’t drastically change between versions.
And the idea that HTML/CSS/JS are non-isolated is over-thinking it. It only applies to the world of Webapps. HTML can be published and served all day without CSS or JavaScript. And you can do a lot with HTML and CSS alone.