Last active
January 22, 2018 08:27
-
-
Save eyaleizenberg/c65e8648ec08e1f8a14e0b7a40b49851 to your computer and use it in GitHub Desktop.
app container with actions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { connect } from 'react-redux' | |
import { selectors, actions } from '../redux/reducers'; | |
import App from '../components/App/App'; | |
const mapStateToProps = (state) => ({ | |
showInfoVisible: selectors.getShowInfoVisible(state) | |
}); | |
const { toggleShowInfoVisible } = actions; | |
export default connect(mapStateToProps, { toggleShowInfoVisible })(App); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment