I assume the "values โโof each reducer", you refer to the entire state of the application.
You can, of course, cut your state and expose only the necessary fragments to certain components. This is the connect method for react-redux . connect accepts a function (for example, mapStateToProps ), which, in turn, accepts all of your application state and provides only those parts that you designate as supports for the component that you "connect" to the abbreviation.
For example, suppose you have a simple React component, such as a username and address:
var myComponent = React.createClass({ render: function() { return ( <div>{Name from redux state goes here}</div> <div>{Address from redux state goes here}</div> ); } });
Obviously, you do not need to send all your application state to this component, just the part with the username and address. So you use connect as follows:
// the "state" param is your entire app state object. function mapStateToProps(state) { return { name: state.name, address: state.address } } var connectedComponent = connect(mapStateToProps)(myComponent);
Now the wrapped myComponent looks like this:
var myComponent = React.createClass({ propTypes: { name: React.PropTypes.string // injected by connect address: React.PropTypes.string // injected by connect }, render: function() { return ( <div>{this.props.name}</div> <div>{this.props.address}</div> ); } });
source share