Re:How UI-driven state increases accidental complexity
by nosrednehnai on Wednesday March 25, 2020 @12:56PM
(#22686384)
> but what happens when something else in your UI cares about it and has to respond to it?
HTML event-listeners like on-blur, on-focus, on-click, etc. handle this very nicely. I've found that they're frequently disregarded in component libraries, unfortunately.
HTML event-listeners like on-blur, on-focus, on-click, etc. handle this very nicely. I've found that they're frequently disregarded in component libraries, unfortunately.
https://developer.mozilla.org/en-US/docs/Web/API/GlobalEvent...