isCompositeComponent function

bool isCompositeComponent(
  1. dynamic instance
)

Returns true if element is a composite component. (created with React.createClass()).

Implementation

bool isCompositeComponent(/* [1] */ instance) {
  return _isCompositeComponent(instance)
      // Workaround for DOM components being detected as composite: https://github.com/facebook/react/pull/3839
      &&
      getProperty(instance as Object, 'tagName') == null;
}