A Look at Facebook's React
dailyjs.com19 pointsby jordow0 comments
...
var twoDivs = {
className: 'outerDiv',
onClick: this.outerDivClicked,
innerDiv: {
className: 'innerDiv',
content: 'inner-most-div!'
}.Div()
}.Div();
Or you can just do it all on the client too, if that's your thing. You'll need to work to get this integrated into your routing technology as with any rendering system. From the video: "There are a number of existing frameworks for javascript today, but there are none like Mojito that try to blur and succeed at blurring the the server client boundary."
I commend Yahoo for tackling this extremely challenging problem. I'd love to see their framework so I can compare benchmarks with FaxJs. Let's see it Yahoo!
React is only 32kb(gzipped) in the production build (which also has performance optimizations that the development build does not).
We've also found that React helps make the rest of your application code much smaller, which may end up being even more important - but 32kb is certainly reasonable. We're extremely conscientious of page load speed and performance at Facebook which is why we place so much emphasis on React performance - second only to correctness and proper abstraction.