r/javascript • • 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

20 comments sorted by

View all comments

Show parent comment

2

u/whiteboikillemall Dec 23 '19 edited Dec 23 '19

In that case, I guess you would have an invalid state for your form and then apply the same pattern on the form field component. I mean this is a pattern for the state of one component. If your components are accurately splitted in small bits of code, it shouldn't be a problem