React's new Context API: How to toggle between local and global state | Hacker News Reader