Re:Compiling JSX with Sweet.js using Readtables
by Kiro on Thursday July 03, 2014 @02:12AM
(#7981723)
A bit OT but without knowing much about React it looks like you need to put your markup in your logic. What happened to the separation where the markup lives in its own template files? Seems like a big issue to me.
[ Parent
| on HN ]
Re:Compiling JSX with Sweet.js using Readtables
by baddox on Thursday July 03, 2014 @03:03AM
(#7981846)
Pete Hunt addresses this specifically in this React talk starting at 3 minutes:
https://www.youtube.com/watch?v=DgVS-zXgMTk#t=182
Basically, the idea is that most JS templating solutions separate technologies (HTML , JS, templating languages), but don't actually separate concerns, because the concern is simply generating and updating DOM regardless of how many technologies you use.
Most JavaScript frameworks or libraries that handling generating and updating DOM, like Ember's two-way binding with Handlebars and Angular's dirty checking with directives, don't really separate markup from logic. They just invent a new language to mix with your HTML, and that new language is deliberately made extremely weak.
Re:Compiling JSX with Sweet.js using Readtables
by lukeholder on Thursday July 03, 2014 @03:04AM
(#7981854)
wow beat me by 60 seconds!
Re:Compiling JSX with Sweet.js using Readtables
by lukeholder on Thursday July 03, 2014 @03:03AM
(#7981850)
Pete Hunt addresses this in his JSConf talk [0]. It an excellent presentation and really confirmed react is the future of front end rendering.
[0] http://www.confreaks.com/videos/2953-jsconfeu2013-rethinking...