4 ms·
> But what if I hate JSX? It's such a tight coupling to the DOM It has nothing to do with DOM in principle. It's just a convenient XML-like declarative syntax
by hcarvalhoalves 12y ago
> But what if I hate JSX? It's such a tight coupling to the DOM
It has nothing to do with DOM in principle.
It's just a convenient XML-like declarative syntax to describe a component tree. Think XUL [1] or Gtk+ Glade [2].
The <a>, <p>, etc. are components on the React.DOM namespace that output DOM nodes of the same name.
[1] https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/Tutorial/Creating_a_Window https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/Tu...
[2] https://glade.gnome.org/ https://glade.gnome.org/