How to create custom ReactJS hooks | Hacker News Reader