Last active
July 21, 2017 08:25
-
-
Save wanybae/8f0c1d7beb60b599997662d90bec0ac7 to your computer and use it in GitHub Desktop.
WebStrom react-redux-container template
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, { Component } from 'react'; | |
import PropTypes from 'prop-types'; | |
import { connect } from 'react-redux'; | |
import { bindActionCreators } from 'redux'; | |
// Import actions | |
class $NAME$ extends Component { | |
constructor(props) { | |
super(props); | |
} | |
render() { | |
return ( | |
<div> | |
</div> | |
); | |
} | |
} | |
$NAME$.propTypes = { | |
//myProp: PropTypes.string.isRequired | |
}; | |
const mapStateToProps = (state, ownProps) => ({ | |
...state, | |
}); | |
const mapDispatchToProps = (dispatch) => bindActionCreators({ | |
}, dispatch); | |
export default connect(mapStateToProps, mapDispatchToProps)($NAME$); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment