From 4bd46aa2fd45cefeeb982ecdd0874aebf1eca5e7 Mon Sep 17 00:00:00 2001 From: Qin Junwen Date: Mon, 6 Jun 2016 13:09:09 +0800 Subject: [PATCH] Update 10.4-test-utils.md The find/scry methods which returns DOM component in react@0.13 now returns DOMElement in react@0.14 and later. --- docs/docs/10.4-test-utils.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/docs/10.4-test-utils.md b/docs/docs/10.4-test-utils.md index 6300fc3791fa..1a1a84affb79 100644 --- a/docs/docs/10.4-test-utils.md +++ b/docs/docs/10.4-test-utils.md @@ -147,12 +147,12 @@ array scryRenderedDOMComponentsWithClass( ) ``` -Finds all instances of components in the rendered tree that are DOM components with the class name matching `className`. +Finds all DOM elements of components in the rendered tree that are DOM components with the class name matching `className`. ### findRenderedDOMComponentWithClass ```javascript -ReactComponent findRenderedDOMComponentWithClass( +DOMElement findRenderedDOMComponentWithClass( ReactComponent tree, string className ) @@ -169,12 +169,12 @@ array scryRenderedDOMComponentsWithTag( ) ``` -Finds all instances of components in the rendered tree that are DOM components with the tag name matching `tagName`. +Finds all DOM elements of components in the rendered tree that are DOM components with the tag name matching `tagName`. ### findRenderedDOMComponentWithTag ```javascript -ReactComponent findRenderedDOMComponentWithTag( +DOMElement findRenderedDOMComponentWithTag( ReactComponent tree, string tagName )