Sha256: d8ef4ed9c32fee55ef04acceccf6ce9671ba9957589e254b3d3fb48e1c647d18
Contents?: true
Size: 787 Bytes
Versions: 21
Compression:
Stored size: 787 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 { selectAccounts, selectPollingProcessID, selectError, } from './AccountListSelectors'; // map state to props const mapStateToProps = state => ({ accounts: selectAccounts(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
21 entries across 21 versions & 2 rubygems