Re:Facebook’s New React JavaScript Library Tutorial Rewritte...
by robocat on Thursday May 30, 2013 @01:49PM
(#5794000)
From beginning of tutorial:
> For our comment box example, we'll have the following component structure:
>- CommentBox
> - CommentList
> - Comment
> - CommentForm
Yet the AngularJS solution simplifies this down to one component.
If we presume React could simplify down to a single component too, then the AngularJS solution is would only be fair if it keeps the artificial constraint of having four component classes.
Re:Facebook’s New React JavaScript Library Tutorial Rewritte...
by peterhunt on Thursday May 30, 2013 @07:27AM
(#5791852)
There's a decent amount in there. We have client-side URL routing/transitions (thanks, Backbone) and the entire profile and feed pages are just big React components. There are also photo modals, login modals, and a full layer/tooltip system which is non-trivial to get right.
Well, I think most would agree that AngularJS has better readability and is more concise but a disclaimer would be that I've been looking at Angular's syntax for quite some time and reactjs is a new framework...Instagram's website is nice by the way, simple, clean UI.
The "Load More" Button on the site is probably powered by reactjs? @peterhunt