Last active
May 2, 2019 18:06
-
-
Save sagarjhaa/2c1336304bc1973e2d442d14499ab3f5 to your computer and use it in GitHub Desktop.
React component template
This file contains hidden or 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 { 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