Javascript classes: state management

Tobias Uhlig
Feb 20, 2020 · 4 min read

[UPDATE] Version 2 of this article is now available

In case you are working with the ES6+ class system, you most likely want to use configs (properties) for your own classes. Since the class system is still lacking to define these inline, you could use the constructor:

You will most likely notice right away, that this approach is not really helpful, since you have no change…