This is a showcase tutorial on how to set up Mobx in your React Native application. You will find how to create a store, observe its changes inside the React components and persist changes on app close.
Project on the GitHub - https://github.com/dimaportenko/react-native-mobx-tutorial
Follow me on Twitter - https://twitter.com/dimaportenko
00:00 - Intro
00:15 - Template Overview
00:50 - MobX Install
01:27 - Create Store
04:12 - Add Store to React Context
06:25 - Use Store Data Inside Components
07:30 - Add MobX to Store (makeAutoObservable)
09:33 - Add/Update Items In Store and Observe Changes
14:25 - Persist State With mobx-sync
19:08 - Implement Remove Item From Store
21:36 - Have a Question? Ask in the comments!
Download
0 formats
No download links available.
React Native with Mobx QuickStart. Create, Observe, Persist. | NatokHD