Skip to content

Instantly share code, notes, and snippets.

@kenaniah
Last active January 5, 2016 01:19
Show Gist options
  • Save kenaniah/96bdb3a27ffc835aec20 to your computer and use it in GitHub Desktop.
Save kenaniah/96bdb3a27ffc835aec20 to your computer and use it in GitHub Desktop.
React Template
const reactComponent = React.createClass({
mixins: [],
propTypes: {},
// Initial defaults
//getDefaultProps: function(){},
//getInitialState: function(){},
// Property change lifecycle
//componentWillReceiveProps: function(newProps){},
// DOM lifecycle
//componentWillMount: function(){},
//componentDidMount: function(){},
//componentWillUnmount: function(){},
// Rendering lifecycle
//shouldComponentUpdate: function(newProps, newState){},
//componentWillUpdate: function(newProps, newState){},
//componentDidUpdate: function(oldProps, oldState){},
// Rendering
render: function(){
return (
<span />
)
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment