Sha256: 01afda5b604dbba9beb9c302dcc117a2ae364ec3df57dd60a9bae6baea27059d
Contents?: true
Size: 793 Bytes
Versions: 6
Compression:
Stored size: 793 Bytes
Contents
import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as actions from './AccountListActions'; import reducer from './AccountListReducer'; import AccountList from './AccountList'; import { selectStatuses, selectPollingProcessID, selectError, } from './AccountListSelectors'; // map state to props const mapStateToProps = state => ({ statuses: selectStatuses(state), pollingProcessID: selectPollingProcessID(state), error: selectError(state), }); // map action dispatchers to props const mapDispatchToProps = dispatch => bindActionCreators(actions, dispatch); // export reducers export const reducers = { accountsList: reducer }; // export connected component export default connect( mapStateToProps, mapDispatchToProps )(AccountList);
Version data entries
6 entries across 6 versions & 1 rubygems