State Management in React Native | React Universe On Air #19

Опубликовано: 15 Октябрь 2024
на канале: Callstack Engineers
2,479
64

✨ In September 2024, The React Native Show has become React Universe On Air ✨

Grab your copy of the Ultimate Guide to React Native Optimization https://www.callstack.com/campaigns/d...

In this episode of the React Native Show, Łukasz Chludziński (  / loginlukasza  ) and Ola Desmurs-Linczewska (  / p_syche_  ) discuss state management in React Native apps. As there’s no magical formula for handling it, don’t expect straightforward direction or easy answers from this episode. Instead, get ready for:
an overview of state management in React Native & React apps
a deep-dive into state management libraries based on different philosophies, including Redux, MobX, XState, Jotai, and React Query
an insight into how Ola compared these libraries when writing “Simplifying State Management in React Native”
a few words of the book-writing process as seen by Ola

You can find Ola’s book on Amazon https://www.amazon.com/Simplifying-St... and GitHub https://github.com/PacktPublishing/Si....

New state management libraries keep appearing, so choosing the one that best suits your project and taste may be challenging. We hope to help you make this decision and get a broader perspective on state management in React Native by having Ola and Łukasz discuss the following aspects of a few libraries:
the people behind them
the category they belong, e.g. flux vs. proxy vs. atom, mutable vs. immutable, battle-tested vs. experimental
how they work and what it means to the developer

Resources that Ola and Łukasz mentioned in this episode:
➡️ Dan Abramov’s Fundamentals of Redux Course https://egghead.io/courses/fundamenta...
➡️ Michel Weststrate’s courses on Mobx https://egghead.io/courses/manage-com..., https://egghead.io/courses/manage-app...
➡️ State explosion https://statecharts.dev/state-machine...
➡️ Daishi Kato’s course on Mobx https://egghead.io/courses/manage-app...
➡️ Dominik Dorfmeister’s blog about React Query https://tkdodo.eu/blog/practical-reac...

Enjoy the episode, and don’t forget to subscribe to our channel for more content like this!

If you feel like learning more about state management with Redux, check out our training:
https://www.callstack.com/training/st...

Need help with your React Native project? Give us a shout!
https://www.callstack.com/services?ut...

Check out other episodes of our podcast:
https://www.callstack.com/podcast-rea...

Do you want to work with us? We’re looking for Senior React Native developers! Check out the details and apply here:
https://www.callstack.com/senior-reac...

Follow us on Twitter to stay up to date with upcoming episodes:
  / callstackio  

Chapters
00:00 Intro
00:12 The Ultimate Guide to React Native Optimization
00:55 Ola and her book
02:25 Default state management
06:03 Redux & Context
08:08 State management philosophies
11:22 Comparing libraries in practice
16:28 Redux
25:00 Mobx
34:05 XState
43:20 Jotai
48:20 React Query
54:08 Honorable mentions
57:05 The writing process