3 ms·
Interesting. My first reaction to JSX was that it was just the right thing: HTML where it needed to be HTML, and a full-fledged pre-existing programming languag
by jfengel 2y ago
Interesting. My first reaction to JSX was that it was just the right thing: HTML where it needed to be HTML, and a full-fledged pre-existing programming language for the rest.
I liked it better than any templating solution. I have a strong preference for existing languages over new ones. They have debuggers, libraries, StackOverflow answers, developer bases, etc.
It takes a while to fully understand the React way of doing things. But JSX itself is almost immediate: plain HTML, plus plain Javascript in braces. About the only thing you really need to learn is that you can return that "HTML" from inside the Javascript.