Sha256: dc26fd8b77e59aef00652a6e843e6de8093166193ef6103d7b2d5fe6eba58bf2
Contents?: true
Size: 545 Bytes
Versions: 42
Compression:
Stored size: 545 Bytes
Contents
import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as actions from './SyncButtonActions'; import SyncButton from './SyncButton'; import { selectTaskStatus } from './SyncButtonSelectors'; // map state to props const mapStateToProps = state => ({ status: selectTaskStatus(state), }); // map action dispatchers to props const mapDispatchToProps = dispatch => bindActionCreators(actions, dispatch); // export connected component export default connect(mapStateToProps, mapDispatchToProps)(SyncButton);
Version data entries
42 entries across 42 versions & 1 rubygems