Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ReactJS as the MVC

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers. →

ReactJS as the MVC

redditmade is a crowdfunding platform wherein we utilize ReactJS as a state/logic manager. In this presentation, I discuss our unique implementation of React and the implications this entails.

Presented at MountainWest JavaScript 2015.

Note: in retrospect, the term "MVC" is not quite accurate. In my talk and presenter notes, I discuss alternative interpretations of the implementation.

Avatar for Zean Tsoi

Zean Tsoi

March 04, 2015

Other Decks in Programming

Transcript

  1. If the Shoe Fits… React is: • Reactive • Expressive

    • Efficient reddit wants: • Simple • Performant • Declarative
  2. No… there is another! Chunk site into atomic single-page apps

    Overload with data Let each component manage its own data Keep state in app, then persist to storage
  3. Visualizing redditmade User Campaigns Create Campaign Create Product Bank Info

    Personal Info User Profile Create Campaign App.jsx
  4. ReactJS as the state machine utilized in conjunction with one-way

    data bindings to manage a series of single-page apps which, in concert, act as singular web platform???
  5. By managing state across a series of interrelated apps, ReactJS

    facilitates a user experience that is performant, reliable, and programmatically simple and intuitive.