The following diagram shows what happens when a component is imported or added to/removed from the page.

Register
component
[Not supported by viewer]
Initialize 
styles
[Not supported by viewer]
Locate affected
DOM nodes
[Not supported by viewer]
Bind functions &
prepare data
[Not supported by viewer]
No
No
Yes
Yes
Run mount
callback
[Not supported by viewer]
Initialize
Browser events
[Not supported by viewer]
Render
component in VDOM
Render<div>component in VDOM</div>
Mount sub components
Mount sub components
Render sub components
Render sub components
Bind getHost
Bind getHost
Call all 
required render
callbacks
[Not supported by viewer]
Is already rendered?
Is already rendered?
Component
Import event
[Not supported by viewer]
component 
added to DOM
event
[Not supported by viewer]
Apply VDOM
to DOM
Apply VDOM<div>to DOM</div>
component 
ready
[Not supported by viewer]
Component
removed
from DOM
[Not supported by viewer]
Component
DOM Node
removed
[Not supported by viewer]
Remove stored
props
[Not supported by viewer]
Call unmount
callback
[Not supported by viewer]
setProps called
setProps called
new props saved
to component
[Not supported by viewer]
trigger re-render
trigger re-render
on next available
browser frame
[Not supported by viewer]
unmount sub components
unmount sub components
call onready
callbacks
[Not supported by viewer]