Quantcast
Channel: React + Redux set up for my react-native app. What is the correct way to handle connect? - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Answer by Mnf Gl for React + Redux set up for my react-native app. What is the correct way to handle connect?

$
0
0

Should I connect to the state and actions in each component, or do it once at the App component level (where the Router Scenes are defined) and pass down.

The best practice is to call actions in component level. makes the store globally accessible. All you need to do is to call action from your component. This is important to ensure the modularity of your app.


Viewing all articles
Browse latest Browse all 3

Trending Articles