3 ms·
JSX [1] is essentially a syntax fix for something people have been doing for a long time in JavaScript with DOM building libraries. Having extensively used nes
by insin 11y ago
JSX [1] is essentially a syntax fix for something people have been doing for a long time in JavaScript with DOM building libraries.
Having extensively used nested function call (like MochiKit.DOM [2]) and nested JSON-ML-ish array (like dombuilder [3]) variants of DOM builders in the past, JSX's syntax is a lot more friendly to write and maintain.
[1] http://facebook.github.io/jsx/ http://facebook.github.io/jsx/
[2] http://mochi.github.io/mochikit/doc/html/MochiKit/DOM.html http://mochi.github.io/mochikit/doc/html/MochiKit/DOM.html
[3] https://github.com/creationix/dombuilder https://github.com/creationix/dombuilder