mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
fc2805fe03
This creates a membrane around the React component prototype. It warns if you try to access properties on the component before it's unmounted. Before it's mounted, it should be considered a descriptor and not an actual instance. The workaround, for unknown types, is to access the constructor using component.type which has static methods on it.