If you’re interested in MobX, you probably know a little bit about Redux. MobX is a more lightweight, flexible state management solution for your React Native app. While it isn’t best for ALL apps, it’s definitely an option to consider when creating new apps. This video will help you get started.

  • 00:15 Reviewing initial code with setState/useState
  • 03:40 Moving the state to a central class
  • 12:21 Adding observable state, actions, and computed values
  • 15:58 Watching state using the observer higher order component
  • 18:25 Rebuild specific widgets when state changes

💻 Follow along with the initial code: https://github.com/cheetahcoding/React-Native-Tutorials-2021/tree/mobx_tutorial

#mobx #react-native #redux

MobX in React Native - The Basics
5.85 GEEK