Flux Architecture: React with MobX

 #flux   #event sourcing   #architecture   #uni-directional   #data flow   #facebook tech   #react   #mobx   #state   #javascript 

2016-11-22

MobX, a popular alternative to Facebook's Redux, which hides details of reactive dependency tree under convenient publish/subscribe-style decorator API. This article describes implementation of Flux Architecture based on MobX.

NOTE

MobX has been repeatedly advertised as an alternative to Flux. And while it can be used to structure application in a different/simpler way, using it to implement Flux is perfectly fine. The code still benefits from convenient publish/subscribe API and dependency injection provided by MobX.

Article about MobX goes in here...

For every action, there is a reaction...

~ Bob Marley "Satisfy My Soul"

References

  1. Smart vs. Dumb Components when using MobX,
  2. Refactor your app from Redux to MobX,
  3. Becoming fully reactive: An in-depth explanation of mobservable,
  4. Overview of Flux Architecture - Official Documantation.

blog comments powered by Disqus