/ src / modules / Alert / Alert.container.js
Alert.container.js
 1  import { connect } from 'react-redux'
 2  import Alert from './Alert'
 3  import { hideAlertAction } from './Alert.reducer'
 4  
 5  const mapStateToProps = state => state.alert
 6  const mapDispatchToProps = dispatch => ({
 7    hideAlert: () => dispatch(hideAlertAction()),
 8  })
 9  
10  export default connect(
11    mapStateToProps,
12    mapDispatchToProps,
13  )(Alert)