[React] React Parent와 Child간 method 호출 순서

create order

1
2
3
4
5
6
7
8
9
10
parent constructor
parent WillMount
parent render

child constructor
child WillMount
child render
child DidMount

parent DidMount

destroy order

1
2
3
4
5
6
7
parent WillUnmount

child WillUnmount

// child unmount

// parent unmount

Reference:
https://stackoverflow.com/questions/44654982/in-which-order-are-parent-child-components-rendered