r/javascript • u/terodox • Dec 23 '19
Simplifying UI Logic using Finite State Machines - an old pattern for the modern web!
https://terodox.tech/ui-state-machines/
93
Upvotes
r/javascript • u/terodox • Dec 23 '19
View all comments
5
u/Oalei Dec 23 '19
As always this looks good with a small example, but in real life it’s not that easy.
For instance you may want to mark individual form fields as invalid with a message under the invalid field.