When to Use React UseRef and UseLayoutEffect | Hacker News Reader