Sha256: d9ca50eeab92b13dc77e7579a9d0e410fd2cf679d6c02976d98bd1cb88e63a87
Contents?: true
Size: 662 Bytes
Versions: 109
Compression:
Stored size: 662 Bytes
Contents
import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import InsightsTab from './InsightsTab'; import * as actions from './InsightsTabActions'; import reducer from './InsightsTabReducer'; import { selectHits } from './InsightsTabSelectors'; // map state to props const mapStateToProps = state => ({ hits: selectHits(state), }); // map action dispatchers to props const mapDispatchToProps = dispatch => bindActionCreators(actions, dispatch); // export reducers export const hostInsightsReducers = { hostInsights: reducer }; // export connected component export default connect(mapStateToProps, mapDispatchToProps)(InsightsTab);
Version data entries
109 entries across 109 versions & 1 rubygems