'Techniques for sharing a global state across functional components in React Native

I am new to React, so I dont know the best ways of implementing some sort of global state. I am currently working in React Native to develop a UI. I have different functional components for the different "things" on the screen. The next step in the development is to implement a shared state between the relevant functional components. The state in question is a simple integer value, which will determine parts of the design. I see there is many ways of implementing this state, but I dont know what is best. How should I implement my shared integer variable?



Solution 1:[1]

There are various client state management library available. You can use any one of the. For example - Redux, Mobx

Redux I would like to suggest

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Diptom Saha