added support for ReactCompositeComponentBase