@samitouri / QOS-React / commits / 036d751397

Add createElement alias for createDescriptor

Sebastian Markbage committed Aug 5, 2014 at 13:57 UTC 036d751397140e1eae01ea6ce6ebe86f0482f485
1 file changed +2 -1
src/browser/ui/React.js
+2 -1
@@ -73,7 +73,8 @@ var React = {
73 EventPluginUtils.useTouchEvents = shouldUseTouch;
74 },
75 createClass: ReactCompositeComponent.createClass,
76 - createDescriptor: createDescriptor,
76 + createDescriptor: createDescriptor, // deprecated, will be removed next week
77 + createElement: createDescriptor,
78 createFactory: createFactory,
79 constructAndRenderComponent: ReactMount.constructAndRenderComponent,
80 constructAndRenderComponentByID: ReactMount.constructAndRenderComponentByID,