Skip to content

Instantly share code, notes, and snippets.

@alfian0
Created March 2, 2017 09:44
Show Gist options
  • Select an option

  • Save alfian0/a27dbc0c1c1ca9f4b409459a3c1ae73b to your computer and use it in GitHub Desktop.

Select an option

Save alfian0/a27dbc0c1c1ca9f4b409459a3c1ae73b to your computer and use it in GitHub Desktop.
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { ActionCreators } from '../actions';
import ApplicationTabs from '../components/ApplicationTabs';
class AppContainer extends Component {
render() {
return (
<ApplicationTabs {...this.props} />
);
}
}
function mapDispatchToProps(dispatch) {
return bindActionCreators(ActionCreators, dispatch);
}
export default connect(state => ({}), mapDispatchToProps)(AppContainer);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment