We don't currently have a way to trace the origin of a mixin
This makes it more difficult to find bugs in mixins both dynamically and using a static type system. We also don't have a way to find these to be upgraded to a new mixin syntax if we needed to. This hook is currently an optional noop but could be made required to create a mixin class.
Sebastian Markbage committed
Jan 27, 2015 at 09:36 UTC
295ef0063b933e13b2ddd541c108b386b35b648b
1 file changed
+4
src/browser/ui/React.js
+4
@@ -65,6 +65,10 @@ var React = {
65
createClass: ReactClass.createClass,
66
createElement: createElement,
67
createFactory: createFactory,
68
+ createMixin: function(mixin) {
69
+ // Currently a noop. Will be used to validate and trace mixins.
70
+ return mixin;
71
+ },
72
constructAndRenderComponent: ReactMount.constructAndRenderComponent,
73
constructAndRenderComponentByID: ReactMount.constructAndRenderComponentByID,
74
findDOMNode: findDOMNode,