This would be a simple post about React lifecycle with hooks and react lifecycle with classes.
I was wondering just like you about unmounting which in the hooks lifecycle but in this case the unmount will be when we do the clean up with for example useEffect, where inside the useEffect doing the return we are doing the unmounting which is called clean up.
We can do basically the same and in a simpler way with functional components. We just have to know how to do it.
Hope someone found it useFul.