ReactTestUtils: findRenderedDOMComponentWithTag()

findRenderedDOMComponentWithTag(
  tree,
  tagName
)

Like scryRenderedDOMComponentsWithTag() 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: findRenderedDOMComponentWithTag() — Structure map

Clickable & Draggable!

ReactTestUtils: findRenderedDOMComponentWithTag() — Related pages: