ReactTestUtils: findRenderedComponentWithType()

findRenderedComponentWithType(
  tree,
  componentClass
)

Same as scryRenderedComponentsWithType() but expects there to be one result and returns that one result, or throws exception if there is any other number of matches besides one.

Related concepts

ReactTestUtils: findRenderedComponentWithType() — Structure map

Clickable & Draggable!

ReactTestUtils: findRenderedComponentWithType() — Related pages: