getComponentTypeV2 function

dynamic getComponentTypeV2(
  1. ReactComponentFactoryProxy componentFactory
)

Returns the ReactComponentFactoryProxy.type of a given componentFactory.

  • For DOM components, this with return the String corresponding to its tagName ('div', 'a', etc.).
  • For custom composite components React.createClass()-based components, this will return the ReactClass.

Implementation

dynamic getComponentTypeV2(ReactComponentFactoryProxy componentFactory) => componentFactory.type;