Statecharts are a formalism for modeling stateful, reactive systems. This is useful for declaratively describing the behavior of your application, from the individual components to the overall application logic.
State machines are a way to handle state management in your front-end application. That doesn’t sound exciting.
I’m still not sure what state machines can do. But it looks like we can describe different states of the UI and programmatically derive actions from it. You can make sure that you find edge cases because there can’t be impossible states. You can easily plan and visualize your possible states before coding.
Here are two videos if you want to know more: