I think this is a misrepresentation of what makes React.js valuable. React is useful for optimizing your rendering (model state -> DOM state) because you don't have to think about re-rendering sub-views of things that haven't changed. This has nothing to do with defining a communication flow for your app. You're still propagating state up and down your tree whether it is a tree of Backbone views or React components.…
What do you mean? Child components don't pass their state to parent components. It's what allows React to be declarative. It's right on the front page: "React implements one-way reactive data flow which reduces boilerplate and is easier to reason about than traditional data binding."
Why you might not need MVC with React.js
11–20 of 81 posts
Re: Why you might not need MVC with React.js
#12Well you need a router and a way to persist data.Does React offer this? How do I manage page changes with React? React only concern is the view afaik. An app is more than a view,even in the client. So react is not MVC,but you still need MVC somewhere.unless you write one page apps of reactive documents. > It does not define how communication flows. I think it does ,in pure MVC: - view is stateless,view is 100% model…
Re: Why you might not need MVC with React.js
#13Re: Why you might not need MVC with React.js
#14If you want a mostly pure DOM-based framework, take a look at Polymer, too ( http://www.polymer-project.org/ ). Web components seem to really embody what the article is driving at.
Isn't React a mostly pure DOM-based framework as well?
My personal take is that, unless Polymer gets integrated into the browser, React is a better solution because it doesn't try to do custom DOM elements.
Re: Why you might not need MVC with React.js
#15I've been doing a broad survey of these JavaScript frameworks for a month or so now. I've looked primarily at Ember, Angular, React, and Knockout. One thing is for sure: React has the community that feels the most "enlightened." I've watched several videos and read several posts similar to this one that express this sentiment of "when I finally understood it, it just clicked , and now I realize it's the best thing in…
Give it a year or so.
Re: Why you might not need MVC with React.js
#16Re: Why you might not need MVC with React.js
#17Earlier quoted context omitted.
What do you mean? Child components don't pass their state to parent components. It's what allows React to be declarative. It's right on the front page: "React implements one-way reactive data flow which reduces boilerplate and is easier to reason about than traditional data binding."
I think when he said "propogating" he was simplifying, "use props to propogate state down the tree and use callbacks to propogate/change state further up the tree"
Re: Why you might not need MVC with React.js
#18If you want a mostly pure DOM-based framework, take a look at Polymer, too ( http://www.polymer-project.org/ ). Web components seem to really embody what the article is driving at.
Isn't React a mostly pure DOM-based framework as well?
personally, i don't like seeing stuff like this in Polymer:
and i like that React let's you write views without data-as-strings.Re: Why you might not need MVC with React.js
#19I've been doing a broad survey of these JavaScript frameworks for a month or so now. I've looked primarily at Ember, Angular, React, and Knockout. One thing is for sure: React has the community that feels the most "enlightened." I've watched several videos and read several posts similar to this one that express this sentiment of "when I finally understood it, it just clicked , and now I realize it's the best thing in…
There's very little to understand, it's really really simple.
With React, I don't really see the point of Ember or Angular, they're basically zombie projects now. I wonder how their devs feel about React. React is an evolutionary leap enabled by their shadow DOM technology. Being able to rerender the whole page in a millisecond is a game changer.
Re: Why you might not need MVC with React.js
#20Well you need a router and a way to persist data.Does React offer this? How do I manage page changes with React? React only concern is the view afaik. An app is more than a view,even in the client. So react is not MVC,but you still need MVC somewhere.unless you write one page apps of reactive documents. > It does not define how communication flows. I think it does ,in pure MVC: - view is stateless,view is 100% model…
i think MVC is defined without regard for the number or pages or how said pages might be routed. you don't "need MVC somewhere".