Typechecking state transitions in a React/Redux app | Hacker News Reader