Search code examples
androidreactjsmobilenative

Why redux is required for React Native mobile App?


I am experience developer of native android app but I am entry level developer for React Native.

I am familiar with basic but not able to understand why Redux is used with React Native?

I want understanding of Redux feature in respect to Android Native App using java


Solution

  • What is Redux: Redux is state management provide library and its upto you that you want to use or not. but in the complex apps its recommended for use.

    Why Use:lets understand with example- You hit a api and get users data and you need it in many screens.Then how will you manage this.

    • Hit api on every screen is not a good idea it makes your app very slow.
    • Pass data with navigation will make your navigation slow and heavy
    • Local-storage will difficult to handle and make slow your app also.

    and with Redux once you store data in Redux-state you can access this data anywhere in your app until you refresh your app.