mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
690409a912
Instead of putting the shared code in a base class method, we use a wrapper call around all invokations. That way they're free to add code before AND after the non-shared code. That way we ensure that component extensions don't need to implement ReactComponentMixin and do super() calls into it. This helps to create a tighter API for custom component extensions. This provides the first step towards moving these methods to static methods which allows to use a different dispatch mechanism instead of virtual method calls. E.g. pattern matching.