ReactTestUtils: findRenderedDOMComponentWithClass()

findRenderedDOMComponentWithClass(
  tree,
  className
)

Like scryRenderedDOMComponentsWithClass() 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: findRenderedDOMComponentWithClass() — Structure map

Clickable & Draggable!

ReactTestUtils: findRenderedDOMComponentWithClass() — Related pages: