use effect in mounting :
the component called at 1st time using effect will be mounting

update: you have 10 usestate you want to render 2 times use[v1,v2].

unmounting: use effect(efn,[];
function efn(){
return (()=>{
-----> if you want to stop the component rendering
}

if you want clean up ao use unmounting it will work on return()

render: render is mean react executes your component function to figure out what should be displayed on the screeen .

rerender:rerendering mean React execute the same component function again because somthing has changed.