Skip to content

Instantly share code, notes, and snippets.

@sebastialonso
Last active December 4, 2016 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebastialonso/3d3312a7e50e5111e5db9b0fe5a6f006 to your computer and use it in GitHub Desktop.
Save sebastialonso/3d3312a7e50e5111e5db9b0fe5a6f006 to your computer and use it in GitHub Desktop.
import React from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import {getIssues} from '../actions/issues_actions'
class IssuesIndex extends React.Component {
render() {
return <div>Yay</div>
}
}
function mapStateToProps(state) {
return {
issues: state.issues
};
}
function mapDispatchToProps(dispatch) {
return bindActionCreators({
getIssues: getIssues
}, dispatch);
}
export default connect(mapStateToProps, mapDispatchToProps)(IssuesIndex);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment