From 5d667e4596fd95680257016e92b4c91cbd3325fc Mon Sep 17 00:00:00 2001 From: Nathan White Date: Thu, 7 Aug 2014 12:09:45 -0600 Subject: [PATCH] Update ref-01-top-level-api.md Added docs for `React.isValidClass` and `React.isValidComponent`. Still missing top level api: * `constructAndRenderComponent` * `constructAndRenderComponentById` * `withContext` --- docs/ref-01-top-level-api.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/ref-01-top-level-api.md b/docs/ref-01-top-level-api.md index 9a215b76e..6eaf0a820 100644 --- a/docs/ref-01-top-level-api.md +++ b/docs/ref-01-top-level-api.md @@ -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(ReactClassDescriptor factory) +``` + +Verifies the factory is a React class. See `React.createClass`. + + +### React.isValidComponent + +```javascript +boolean isValidComponent(ReactComponent object) +``` + +Verifies the object is a React component. + ### React.DOM