This, in contrast to my previous pieces, will be a more opinion based article. So, dear reader, treat everything here with a grain of salt - it's just my feelings, thoughts and ideas related to the problem of state management in React.
Why would you listen to me?
I worked in commercial projects in React that utilized all of the 3 most popular approaches to state management:
- simply using React built-in state mechanisms,
- using Redux,
- using Mobx.
So in this article I will compare those 3 options.
My goal is to present you a balanced opinion on each of this approaches, but more importantly, give a (surely controversial) opinion on why exactly state management became such important problem in React apps, causing people to write countless libraries, articles and conference talks on the topic, that probably should have been solved a long time ago already.
Let's get started!