34 karma · joined Sep 27, 2011 (15y ago) · 9 submissions
comment 12y ago · link · parent
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.
2.
A Look at Facebook's React(dailyjs.com ↗)
19 points · by jordow · 13y ago · discuss
3.
60 FPS or Bust: Dynamically Prerendering CSS Animations(jeremyckahn.github.io ↗)
3 points · by jordow · 13y ago · discuss
comment 13y ago · link · parent
comment 14y ago · link · parent
(It seems there's an overwhelming consensus forming around issues like this - which FaxJs addresses at the core.)
comment 14y ago · link · parent
https://github.com/jordow/FaxJs
(see reactive example)
Functional reactive programming makes ui development so much easier. I've seen a lot of people starting to think this way about ui systems (with good reason). Good work!
I'd like to add similar compiled-in reactive optimizations to FaxJs as I'm sure Elm does. I commend you on choosing a static type inference system.
comment 15y ago · link · parent
https://github.com/jordow/FaxJs
The gist is that you just write standard declarative ui structures in pure javascript and the system disassembles the markup on the server, and reassembles it on the client with all the events still in tact. You wouldn't know all that is happening just by looking, though.
...
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.comment 15y ago · link · parent
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!I'm guessing Mojito has a ton of functionality surrounding ajax/queries and business logic modules etc. FaxJs is a work in progress, but it has a couple of novel concepts besides server side rendering: In FaxJs, your view is simply a function of your model, or a "projection". That function acts as an invariant that the system upholds at all times without introducing any other concepts/abstractions. Sometimes, a function is enough.
comment 15y ago · link · parent