Skip to content

Instantly share code, notes, and snippets.

@eyaleizenberg
Last active January 22, 2018 08:27
Show Gist options
  • Save eyaleizenberg/c65e8648ec08e1f8a14e0b7a40b49851 to your computer and use it in GitHub Desktop.
Save eyaleizenberg/c65e8648ec08e1f8a14e0b7a40b49851 to your computer and use it in GitHub Desktop.
app container with actions
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