...

/

Managing States Using State Management Libraries

Managing States Using State Management Libraries

Learn how to manage states in React Native using state management libraries.

We'll cover the following...

In complex applications, the components have an internal state, which often needs to be shared across multiple other components. Moreover, the internal state might also need to be altered or updated while being shared with other components. Hence, it becomes challenging to manage and track the state. The complexity of managing the state grows exponentially as more and more features are added. To address this issue, React Native provides us with various state management libraries. In this lesson, we will briefly go through these state management libraries:

  • Redux

  • MobX

  • Recoil

Redux is a standard state management library that allows us to store the state of various variables inside our application using a single store. Therefore, all of the data related to the state of the application is stored in one place instead of being scattered across multiple components. Redux provides a mechanism for accessing, reading, and updating the stored data. The mechanism is not random. It can be considered similar to a bank or an ATM, where random transactions cannot happen simultaneously. Redux is the ...

Access this course and 1400+ top-rated courses and projects.