mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
27c482a2b8
ReactClass is now composed by ReactCompositeComponent rather than inherit from it. The state transition functions currently use ReactInstanceMap to map an instance back to an internal representation. I updated some tests to use public APIs. Other unit tests still reach into internals but now we can find them using ReactInstanceMap. I will do more cleanup in follow ups. The purpose of this diff is to preserve semantics and most of the existing code. This effectively enables support for ES6 classes. All you would need to expose is ReactClassMixin.