Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate React Composite and Class #2445

Merged
merged 1 commit into from
Nov 7, 2014
Merged

Commits on Nov 7, 2014

  1. Separate React Composite and Class

    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.
    sebmarkbage committed Nov 7, 2014
    Configuration menu
    Copy the full SHA
    27c482a View commit details
    Browse the repository at this point in the history