@samitouri / QOS-React-2 / commits / a5ae126630

Docs: ReactComponent -> ReactClass in a few places

Aaron Franks committed Dec 14, 2014 at 17:03 UTC a5ae12663037b0b09a835014413ba9d0d1cff540
1 file changed +6 -7
docs/docs/ref-01-top-level-api.md
+6 -7
@@ -14,10 +14,10 @@ redirect_from: "/docs/reference.html"
14 ### React.createClass
15
16 ```javascript
17 -ReactComponent createClass(object specification)
17 +ReactClass createClass(object specification)
18 ```
19
20 -Create a component given a specification. A component implements a `render` method which returns **one single** child. That child may have an arbitrarily deep child structure. One thing that makes components different than standard prototypal classes is that you don't need to call new on them. They are convenience wrappers that construct backing instances (via new) for you.
20 +Create a component class, given a specification. A component implements a `render` method which returns **one single** child. That child may have an arbitrarily deep child structure. One thing that makes components different than standard prototypal classes is that you don't need to call new on them. They are convenience wrappers that construct backing instances (via new) for you.
21
22 For more information about the specification object, see [Component Specs and Lifecycle](/react/docs/component-specs.html).
23
@@ -26,28 +26,27 @@ For more information about the specification object, see [Component Specs and Li
26
27 ```javascript
28 ReactElement createElement(
29 - string/ReactComponent type,
29 + string/ReactClass 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`.
36 +html tag name string (eg. 'div', 'span', etc), or a `ReactClass` (created via `React.createClass`).
37
38
39 ### React.createFactory
40
41 ```javascript
42 factoryFunction createFactory(
44 - string/ReactComponent type
43 + string/ReactClass type
44 )
45 ```
46
47 Return a function that produces ReactElements of a given type. Like `React.createElement`,
48 the type argument can be either an html tag name string (eg. 'div', 'span', etc), or a
50 -`ReactComponent` class that was created with `React.createClass`.
49 +`ReactClass`.
50
51
52 ### React.render