Javascript and classes go together like toothpaste and orange juice. All good JS programmers I know essentially pretend that classes don't exist in the language (or if they use them, they only do so rarely, for very niche cases). JS does not have classical OOP built in! It has Brandon Eich's prototypal inheritance system (which has some key differences), along with a 2015 addition to the language to pretend it has OO…
I have noticed that inheritance is largely ignored by experienced developers but it's a hard argument to make that "all good JS programmers do this". Classes are invaluable and are an extremely efficient and ergonomic way to manage state in GUI applications. That said, avoiding classes was published in some blog post at some point and the JS hype machine went crazy with FP. As a consequence, I have yet to observe a m…
https://github.com/thalesfp/snapstate/blob/ba8a8d7ce25d6a4ef...
I'm not sure if it would support inheriting from a custom store very well. It might get tricky with the templating. But the author of this seems to have done a good job of not ignoring inheritance.