XState is a very well written library. It seeks to bring the finite state machine pattern into React applications and, for the most part, does exactly that, and extremely well. I’ve been using — well, forced to use, really — XState in a professional application in my job. I didn’t…