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