You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1.1 KiB

Lifecycle Methods

Pillar provides exact same lifecycle methods as React:

Method Name When is it called?
componentWillMount Before the component gets mounted to the DOM
componentDidMount After the component gets mounted to the DOM
componentWillUnmount Before component is removed from the DOM
componentWillReceiveProps Before new props are accepted
shouldComponentUpdate Before render() is called. Return false to prevent render
componentWillUpdate Before render()
componentDidUpdate After render()

Note: Lifecycle methods don't work in stateless components and string/template tag render.

Next: Render from string →