Creating controlled components in React | Hacker News Reader