-
-
Save sebastialonso/3d3312a7e50e5111e5db9b0fe5a6f006 to your computer and use it in GitHub Desktop.
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 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