findRenderedDOMComponentWithClass function

  1. @JS('React.addons.TestUtils.findRenderedDOMComponentWithClass')
dynamic findRenderedDOMComponentWithClass(
  1. dynamic tree,
  2. String 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.

Implementation

@JS('React.addons.TestUtils.findRenderedDOMComponentWithClass')
external dynamic /* [1] */ findRenderedDOMComponentWithClass(/* [1] */ tree, String className);