3 ms·
This can be avoided by just not using JSX. The React DOM API is not really that hard to use.
by arnemart 12y ago
This can be avoided by just not using JSX. The React DOM API is not really that hard to use.
- kansface 12y agoIts not hard, but it is rather verbose :(
- dugmartin 12y agoIt's pretty concise using Coffeescript: http://blog.vjeux.com/2013/javascript/react-coffeescript.html http://blog.vjeux.com/2013/javascript/react-coffeescript.htm...
- pselbert 12y agoAs @dugmartin mentioned, it's really quite nice if you are using coffeescript. It ends up resembling templating in a lisp, something akin to hiccup for example. I imagine a similar effect can be had with ES6 destructuring assignment, just with more commas and mandatory array brackets.