O'Reilly logo

Developing a React Edge, 2nd Edition by Simon Højberg, Frankie Bagnardi, Richard Feldman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 15. Architectural patterns

There are a good number of architectural patterns that can be used with React. From a standard Flux pattern, to Flux variants like Reflux, to an entirely different language and ecosystem like Om and ClojureScript, React has proven to be quite adaptable. In this chapter we’ll explore how our sample React app is structured and how this structure helps manage complexity as your project grows. We’ll also explore some popular alternatives.

It is commonly said that you can consider React to be the V in MVC. It could be used with inline AJAX requests as shown below but, this quickly becomes hard to reason about:

export default
class Reply extends React.Component {
  getInitialState() {
    return {
      text: ""
    };
  }

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required