code: function (root, componentType) {
      return ReactTestUtils.findAllInRenderedTree(root, function (inst) {
        return ReactTestUtils.isCompositeComponentWithType(inst, componentType);
      });
    }
docs: Finds all instances of components with type equal to `componentType`.
  @return {array} an array of all the matches.