Creating stateful functional components with the useState hook in ReactJS | Hacker News Reader