@samitouri / QOS-React-2 / commits / 2e232f83bc

Document React.addons.TestUtils.isElement()

Petri Lehtinen committed Feb 2, 2015 at 10:22 UTC 2e232f83bc1dff1a9fd59f4f5f2282cd47d0f6a9
1 file changed +8
docs/docs/10.4-test-utils.md
+8
@@ -43,6 +43,14 @@ object mockComponent(function componentClass, string? mockTagName)
43
44 Pass a mocked component module to this method to augment it with useful methods that allow it to be used as a dummy React component. Instead of rendering as usual, the component will become a simple `<div>` (or other tag if `mockTagName` is provided) containing any provided children.
45
46 +### isElement
47 +
48 +```javascript
49 +boolean isElement(ReactElement element)
50 +```
51 +
52 +Returns true if `element` is any ReactElement.
53 +
54 ### isElementOfType
55
56 ```javascript