I'm writing a post on why you should switch to ES2015 classes in React, would love feedback on why you still use React.createClass.
-
-
@sebmck can you please show an example of what you're talking about? I assume you're talking about prototypes@Keith_Rousseau@ReactJSNews -
@mjackson https://babeljs.io/repl/#?experimental=true&evaluate=true&loose=false&spec=false&code=function%20enumerableMethod(target%2C%20key%2C%20descriptor)%20%7B%0A%20%20descriptor.enumerable%20%3D%20true%3B%0A%7D%0A%0Aclass%20Foo%20%7B%0A%20%20%40enumerableMethod%0A%20%20foo()%20%7B%0A%20%20%20%20%0A%20%20%7D%0A%7D%0A%0Afor%20(var%20key%20in%20new%20Foo)%20%7B%0A%20%20console.log(key)%3B%20%20%0A%7D …@keith_rousseau@reactjsnews - 4 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 