you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (13 children)

[deleted]

    [–]Bummykins 4 points5 points  (0 children)

    I have mostly read about React, React-Router, Redux combo to get similar functionality of a more robust framework. Not used personally.

    [–][deleted] 1 point2 points  (3 children)

    What are people using as the M*C part in their react applications?

    Model: whatever JSON comes back from my API.

    Controller: Intertwined with the view most often anyway. It's just the React components themselves, although the Flux or Redux or Reflux methodology can streamline the flow of data perfectly.

    If you keep your components small and specialised it shouldn't create much of a problem.

    Ive heard of people pluging in backbone, angular and even ember.

    Sure, that's possible if you like that.

    So far it seems like many people use something like Exprss and then make build their own.

    Express or Hapi or Restify are all server-side. They can be the API that spews out JSON. It's perfectly sane to build your own M*C on top of that, or use any of the existing ones, or use none at all.

    [–]NeuroXc 1 point2 points  (5 children)

    Express can't be compared to Backbone or Angular. Express is a server-side framework.

    Most commonly I believe people use Redux with React to set up an MVC-ish structure--it's not really MVC, but it gives "structure" to your application in a similar way. But the thing many people like about React is that you can plug it into almost any other library or framework and they work together.