Skip to content

Instantly share code, notes, and snippets.

@fdidron
Last active March 17, 2016 08:59
Show Gist options
  • Save fdidron/cd5aa96e39dfcd11a18e to your computer and use it in GitHub Desktop.
Save fdidron/cd5aa96e39dfcd11a18e to your computer and use it in GitHub Desktop.
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