Skip to content

Instantly share code, notes, and snippets.

@sagarjhaa
Last active May 2, 2019 18:06
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 sagarjhaa/2c1336304bc1973e2d442d14499ab3f5 to your computer and use it in GitHub Desktop.
Save sagarjhaa/2c1336304bc1973e2d442d14499ab3f5 to your computer and use it in GitHub Desktop.
React component template
import React, { Component } from 'react';
import { connect } from 'react-redux';
class TemplateComponent extends Component {
constructor(props) {
super(props);
}
render() {
return (
<div>
<p>Component template </p>
</div>
);
}
}
function mapStateToProps(state) {
return state;
}
export default connect(mapStateToProps)(TemplateComponent);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment