findRenderedDOMComponentWithTag function

  1. @JS('React.addons.TestUtils.findRenderedDOMComponentWithTag')
dynamic findRenderedDOMComponentWithTag(
  1. dynamic tree,
  2. String tag
)

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.

Implementation

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