Skip to content

Instantly share code, notes, and snippets.

Name of thing Sorta like... Mounted? Can you even setState? What would you say... ya do here?
constructor(props) initialize() nope nope init stuff NO side effects
componentWillMount() beforeDomReady() nope yeah but don't Only needed in createClass now use constructor for most things
render render nope please no render stuff and don't set any state please
componentDidMount() domReady() yup yup DOM is a go init jQuery plugins dis