Last active
March 17, 2016 08:59
-
-
Save fdidron/cd5aa96e39dfcd11a18e 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'; | |
// Scaffold imports | |
import './{{name}}.less'; | |
{{imports}} | |
// End scaffold imports | |
class {{name}} extends React.Component { | |
constructor(props) { | |
super(props); | |
} | |
/* Component Custom Methods */ | |
/* End Component Custom Methods */ | |
/* React Component LifeCycle Methods */ | |
//componentWillMount() {} | |
//componentDidMount() {} | |
//componentWillReceiveProps(nextProps) {} | |
//shouldComponentUpdate(nextProps, nextState) {} | |
//componentWillUpdate(nextProps, nextState) {} | |
//componentDidUpdate(prevProps, prevState) {} | |
//componentWillUnmount() {} | |
render() { | |
return ( | |
<div className="{{class}}"> | |
<h1>{{name}}</h1> | |
<p>{{description}}</p> | |
</div> | |
); | |
} | |
/* End React Component LifeCycle Methods */ | |
} | |
{{name}}.description = '{{description}}'; | |
{{name}}.propTypes = { | |
} | |
export default {{name}}; | |
//Unit test entry point | |
export const _{{name}} = {{name}}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment