React hook to detect component mount, unmount and re-renders | Heykuki News