mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
ff032dc857
This is the base class that will be used by ES6 classes. I'm only moving setState and forceUpdate to this base class and the other functions are disabled for modern classes as we're intending to deprecate them. The base classes only have getters that warn if accessed. It's as if they didn't exist. ReactClass now extends ReactComponentBase but also adds the deprecated methods. They are not yet fully deprecated on the ReactClass API. I added some extra tests to composite component which we weren't testing to avoid regressions. I also added some test for ES6 classes. These are not testing the new state initialization process. That's coming in a follow up.