A number of changes to XState have occurred since writing this article. An updated version of a sign-in form using React & XState can be found here.