The above is the life of a React component, from birth (pre-mounting) and death (unmounting). The beauty of React is the splitting of complicated UI’s into little, bite-sized bits. Not only can we thus compartmentalize our app, we can also customize each compartment.
Full article