Based on your knowledge in ReasonML, and the current state of React and Reason (pun intended), if you had to recommend a state management solution for medium-complexity webapp (using Apollo GraphQL too), which solution would you recommend to a JS development team:
- Redux (possibly with Kea)
- MobX (possibly with mobx-state-tree)
- ReasonML (possibly with addition of Redux, Mobx, or just React Context)
- Something else
While people here might be tempted to recommend ReasonML, I need to consider Ease of use + Learning curve in addition to the Maintainability of code. Also, I need to consider that the state needs to be accessed from outside of ReasonML (i.e. perhaps via React Context, or otherwise also need Redux or Mobx).
One of the reasons I’m curious about this is because I really like the reactive approach of MobX (seems to simplify the design and boilerplate, to me), but I realize that it’s not the “correct”/functional way to manage state.
Thanks for your input, I appreciate any insights I can glean from your experience, etc.