Update ref-01-top-level-api.md
Added docs for `React.isValidClass` and `React.isValidComponent`. Still missing top level api: * `constructAndRenderComponent` * `constructAndRenderComponentById` * `withContext`
Nathan White committed
Aug 7, 2014 at 12:09 UTC
c53fb8f405d3bb5ff83b6845a0e50bd018548a22
1 file changed
+17
docs/docs/ref-01-top-level-api.md
+17
@@ -73,6 +73,23 @@ string renderComponentToStaticMarkup(ReactComponent component)
73
74
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.
75
76
+### React.isValidClass
77
+
78
+```javascript
79
+boolean isValidClass(ReactClassDescriptor factory)
80
+```
81
+
82
+Verifies the factory is a React class. See `React.createClass`.
83
+
84
+
85
+### React.isValidComponent
86
+
87
+```javascript
88
+boolean isValidComponent(ReactComponent object)
89
+```
90
+
91
+Verifies the object is a React component.
92
+
93
94
### React.DOM
95