4 ms·
I have never understood why people find UI challenging, aside from accessibility and security. State management is ridiculously easy. So easy that you are goin
by austincheney 6y ago
I have never understood why people find UI challenging, aside from accessibility and security.
State management is ridiculously easy. So easy that you are going to 10x greater effort reading your favorite framework’s API.
To manage state store your state criteria in a central object. Save that to storage somewhere, such as localStorage. To restore state read the stored state object and apply each item to its respective area of the application.
Modules and components are ridiculously easy now too thanks to ECMAScript modules.