Skip to content

Instantly share code, notes, and snippets.

@wanybae
Last active July 21, 2017 08:25
Show Gist options
  • Save wanybae/8f0c1d7beb60b599997662d90bec0ac7 to your computer and use it in GitHub Desktop.
Save wanybae/8f0c1d7beb60b599997662d90bec0ac7 to your computer and use it in GitHub Desktop.
WebStrom react-redux-container template
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