Thank you very much for the explanation!
I was confused because I didn't realize that, actually, a class in ES6 is just a variable. Also, I am not used to the decorator pattern. Now it makes sense.
I was confused because I didn't realize that, actually, a class in ES6 is just a variable. Also, I am not used to the decorator pattern. Now it makes sense.
TypeError: Class constructors cannot be invoked without 'new'That's definitely much nicer than the old way.