DEV Community

Discussion on: Why I recommend MobX for React Native in 2020

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.