News for hackers. Stuff that matters.
Re:Preact, a fast 3k React alternative by Touche on Thursday January 28, 2016 @03:43PM (#10991149)
You can add object properties to a ES6 class's prototype, no?

EDIT: Just tested in Firefox and indeed you can.

Re:Preact, a fast 3k React alternative by jallmann on Thursday January 28, 2016 @04:10PM (#10991370)
Not in the class declaration, though. Why force the programmer to go through the prototype, when ES6 provides such a "convenient" abstraction around it?
Re:Preact, a fast 3k React alternative by phpnode on Thursday January 28, 2016 @06:05PM (#10992212)
Coming to the spec soonish and already supported in Babel - https://github.com/jeffmo/es-class-fields-and-static-propert...