Jul 25, 2017 · 1 min read
createClass is essentially a function that takes an object config and return a component.
That seems pretty idiomatic javascript to me, and things are pretty clear/obvious.
The class syntax feels like its trying to shoe horn something that doesn’t quite fit (and the fact it requires non-standard syntax to actually be useable isn’t helping).
At this point if I make a new project I probably do it with the ES6 class syntax because why not…but if i have a project using createClass, I sure as hell am not refactoring it. There’s no point.
