Quantcast
Viewing latest article 2
Browse Latest Browse All 3

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

The approach I've been using is to split the app into smart and dumb components as Dan Abramov explains here. I then use connect to feed the state into the smart components and pass props down to the dumb ones.

This allows you to reuse the dumb components in many places as they are not tied to a specific state.


Viewing latest article 2
Browse Latest Browse All 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>