Skip to content

Commit

Permalink
Document React.addons.TestUtils.isElement()
Browse files Browse the repository at this point in the history
  • Loading branch information
akheron committed Feb 2, 2015
1 parent 905bfce commit 2e232f8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/docs/10.4-test-utils.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ object mockComponent(function componentClass, string? mockTagName)

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.

### isElement

```javascript
boolean isElement(ReactElement element)
```

Returns true if `element` is any ReactElement.

### isElementOfType

```javascript
Expand Down

0 comments on commit 2e232f8

Please sign in to comment.