Lifecycle Method
↔ method to perform Effect at specific stage of Component Lifecycle
componentDidUpdate()
CC Lifecycle Method to trigger when CC updates (excl Mount)
componentDidMount()
CC Lifecycle Method to trigger when CC Mount to DOM API
componentWillUnmount()
CC Lifecycle Method to trigger when CC Unmount from DOM API
References
Hook
↔ Specialized Function Functionally extends FC with Lifecycle Method & persistent stateCC
↔ Reactclass
Instanceextends
React.Component
, provides render() Method to return UI, manage state & perform side effects on Lifecycle MethodsReact.Component
↔ base Abstract Class that provides render() method to return React Element(s), state & Lifecycle MethodscomponentDidUpdate()
↔ CC Lifecycle Method to trigger when CC updates (excl Mount)componentDidMount()
↔ CC Lifecycle Method to trigger when CC Mount to DOM APIcomponentWillUnmount()
↔ CC Lifecycle Method to trigger when CC Unmount from DOM API