Add createElement alias for createDescriptor

This commit is contained in:
Sebastian Markbage
2014-08-06 16:41:47 -07:00
committed by Paul O’Shannessy
parent aaa8a5ff50
commit 036d751397
+2 -1
View File
@@ -73,7 +73,8 @@ var React = {
EventPluginUtils.useTouchEvents = shouldUseTouch;
},
createClass: ReactCompositeComponent.createClass,
createDescriptor: createDescriptor,
createDescriptor: createDescriptor, // deprecated, will be removed next week
createElement: createDescriptor,
createFactory: createFactory,
constructAndRenderComponent: ReactMount.constructAndRenderComponent,
constructAndRenderComponentByID: ReactMount.constructAndRenderComponentByID,