React.createClass({
//inheritance and used 'variables'
propTypes: {},
mixins : [],
//lifecycle, occur before an instance of the component is created
getInitialState: function() {},
getDefaultProps: function() {},
//
lifecycle, occur during the mounting/updating/mounted cycle
componentWillMount : function() {},
componentWillReceiveProps: function() {},
componentWillUnmount : function() {},
//handy to have your custom methods separate and named differently
_myCustomParseData : function() {},
_onSelect : function() {},
//min lifecycle method
render : function() {}
})
See the Pen
jbYMoL by Mike (
@shershen08) on
CodePen.