UI development is more complex than it appears. In fact, behind all of your favorite UI elements and actions lie secret machines … state machines. Once you understand how to manage state and state machines, it’ll make your life easier.
Why TypeScript might be a good fit for your next project: tips for choosing - or not choosing - TypeScript. (Plus a video recording of TJ VanToll's DevReach talk on the subject)