react state solution: mobx tree介绍
Mobx 是状态管理的框架,可以用在多个JS框架上。与之对应的是Redux:: https://blog.logrocket.com/understanding-redux-tutorial-examples/
官方文档:(mobx)
https://github.com/mobxjs/mobx
https://mobx.js.org/getting-started (source code: https://github.com/saaspeter/mobx-get-start/tree/main )
https://mobx.js.org/the-gist-of-mobx.html
别的来源文档:
https://blog.logrocket.com/introduction-to-mobx-with-react/ (https://github.com/limistah/mobx-react.git)
而 mobx state tree是基于mobx的管理框架:
我们要用在react native上的是 mobx state tree,学习mobx有助于更好的了解mobx tree
官方文档:
https://mobx-state-tree.js.org/intro/welcome
https://mobx-state-tree.js.org/intro/getting-started
https://codesandbox.io/s/mst-demo-8jw9tc )
https://medium.com/react-native-training/state-management-with-mobx-state-tree-373f9f2dc68a
https://github.com/infinitered/ignite/blob/master/docs/concept/MobX-State-Tree.md