Add top-level API docs section for React.createElement.
Aaron Franks committed
Nov 26, 2014 at 23:18 UTC
5e7e07b6d8a4abf67394497bff1e663a08984587
1 file changed
+15
docs/docs/ref-01-top-level-api.md
+15
@@ -22,6 +22,21 @@ Create a component given a specification. A component implements a `render` meth
22
For more information about the specification object, see [Component Specs and Lifecycle](/react/docs/component-specs.html).
23
24
25
+### React.createElement
26
+
27
+```javascript
28
+function createElement(
29
+ string/ReactComponent type,
30
+ [object props],
31
+ [children ...]
32
+)
33
+```
34
+
35
+Create and return a new ReactElement of the given type. The type argument can be either an
36
+html tag name string (eg. 'div', 'span', etc), or a `ReactComponent` class that was created
37
+with `React.createClass`.
38
+
39
+
40
### React.render
41
42
```javascript