Skip to content

Instantly share code, notes, and snippets.

@thoughtpalette
Created September 16, 2015 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thoughtpalette/efdec0a8993a3a36fa03 to your computer and use it in GitHub Desktop.
Save thoughtpalette/efdec0a8993a3a36fa03 to your computer and use it in GitHub Desktop.
Lifecycle Methods
componentWillMount – Invoked once, on both client & server before rendering occurs.
componentDidMount – Invoked once, only on the client, after rendering occurs.
shouldComponentUpdate – Return value determines whether component should update.
componentWillUnmount – Invoked prior to unmounting component.
Specs
getInitialState – Return value is the initial value for state.
getDefaultProps – Sets fallback props values if props aren’t supplied.
mixins – An array of objects, used to extend the current component’s functionality.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment