Handling UI states can start to make your template crowded and littered with variables. A recent talk I heard regarding State Machines inspired me to create a hook that helped me handle some issues that I constantly found myself running into.
Full article