Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react lifecycle

Initialization = setup props & state

// Lifecycle Phase 
1. mounting // Born
2. update   // Growth
3. unmounting //Dead

// lifecycle method
mounting = constructor->render->componentDidMount
update = render->componentDidUpdate
unmounting = componentWillUnmount
Source by reactjs.org #
 
PREVIOUS NEXT
Tagged: #react #lifecycle
ADD COMMENT
Topic
Name
8+6 =