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

Be more specific with createClass, renderComponent

Closes #371.

Ben Alpert committed May 17, 2014 at 22:53 UTC f1a5a4c58e304c40b6710ac305833695a4628d82
1 file changed +3 -3
docs/docs/ref-02-component-api.md
+3 -3
@@ -9,7 +9,7 @@ next: component-specs.html
9
10 ## ReactComponent
11
12 -Component classes created by `createClass()` return instances of `ReactComponent` when called. Most of the time when you're using React you're either creating or consuming these component objects.
12 +Component classes created by `React.createClass()` return instances of `ReactComponent` when called. Most of the time when you're using React you're either creating or consuming these component objects.
13
14
15 ### getDOMNode
@@ -27,11 +27,11 @@ If this component has been mounted into the DOM, this returns the corresponding
27 setProps(object nextProps[, function callback])
28 ```
29
30 -When you're integrating with an external JavaScript application you may want to signal a change to a React component rendered with `renderComponent()`. Simply call `setProps()` to change its properties and trigger a re-render. In addition, you can supply an optional callback function that is executed once `setProps` is completed.
30 +When you're integrating with an external JavaScript application you may want to signal a change to a React component rendered with `React.renderComponent()`. Simply call `setProps()` to change its properties and trigger a re-render. In addition, you can supply an optional callback function that is executed once `setProps` is completed.
31
32 > Note:
33 >
34 -> This method can only be called on a root-level component. That is, it's only available on the component passed directly to `renderComponent()` and none of its children. If you're inclined to use `setProps()` on a child component, instead take advantage of reactive updates and pass the new prop to the child component when it's created in `render()`.
34 +> This method can only be called on a root-level component. That is, it's only available on the component passed directly to `React.renderComponent()` and none of its children. If you're inclined to use `setProps()` on a child component, instead take advantage of reactive updates and pass the new prop to the child component when it's created in `render()`.
35
36
37 ### replaceProps