Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ref-01-top-level-api.md #2010

Merged
merged 2 commits into from
Aug 14, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 17 additions & 0 deletions docs/docs/ref-01-top-level-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,23 @@ string renderComponentToStaticMarkup(ReactComponent component)

Similar to `renderComponentToString`, except this doesn't create extra DOM attributes such as `data-react-id`, that React uses internally. This is useful if you want to use React as a simple static page generator, as stripping away the extra attributes can save lots of bytes.

### React.isValidClass

```javascript
boolean isValidClass(* factory)
```

Verifies the factory is a React class descriptor. See `React.createClass`.


### React.isValidComponent

```javascript
boolean isValidComponent(* object)
```

Verifies the object is a React component descriptor.


### React.DOM

Expand Down