vinej / react-portal

A Dashboard example with React/Mobx and ReMux : a 'Flux' pattern inpired by Redux
MIT License
51 stars 1 forks source link

Question about Mobx and Redux #4

Open DigitalMarc opened 7 years ago

DigitalMarc commented 7 years ago

Hi Jean-Yves,

I've recently started to work on React using Next.js and Mobx. I'm currently working on a prototype for a dashboard so your project is a great help. I was thinking that Mobx is fulfilling the same purpose as Redux but in a different way. I'm confused then, any clarification is welcome :) Regards

vinej commented 7 years ago

Redux is a kind of flux pattern while Mobx is a state management library. So if you like flux pattern, you can use Redux. Remux is another example of a flux pattern, but using Mobx to manage state. At the end, I found that using a flux pattern for a very complex software is a good think because all the events are flowing in one direction. It is more easy to maintain.

For small application, you can use Mobx without any flux pattern. It will be faster to develop.