React 0.12

I don't follow how createFactory can be the same type def as createClass