DEV Community

Cover image for Why I recommend MobX for React Native in 2020
Adrian Twarog
Adrian Twarog

Posted on

Why I recommend MobX for React Native in 2020

Check out why I think you should use MobX with React Native as your state management library for your next project. A quick introduction and getting started guide!

MobX is a great state management library that hasn't got enough attention, in my video I go over:

  • What MobX is
  • How to install MobX for React Native
  • Observers and Observables
  • Computes and Actions
  • Setting up a store Provider

Top comments (3)

Collapse
 
mohmdalfaha profile image
Mohammed Nasser

Thanks for this, but in 2020 i think no one should keep using class based components. So It could be great to make a new video about using mobx-react with hooks.

Collapse
 
adriantwarog profile image
Adrian Twarog

It depends on the use cases, mobx actually has smarts around using the provider with injected stores and observers, but if you want something more simple, there is a separate library of mobx called mobx-react-lite

Collapse
 
pavermakov profile image
Pavel Ermakov

Class components aren't going anywhere.