Understanding React component life-cycle | Hacker News Reader