@samitouri / QOS-React-2 / commits / 93ce334368

Add top-level API docs for React.createFactory.

Aaron Franks committed Dec 8, 2014 at 07:54 UTC 93ce3343689c60fa582304652b4e1c0fbbeab479
1 file changed +13
docs/docs/ref-01-top-level-api.md
+13
@@ -37,6 +37,19 @@ html tag name string (eg. 'div', 'span', etc), or a `ReactComponent` class that
37 with `React.createClass`.
38
39
40 +### React.createFactory
41 +
42 +```javascript
43 +factoryFunction createFactory(
44 + string/ReactComponent type
45 +)
46 +```
47 +
48 +Return a function that produces ReactElements of a given type. Like `React.createElement`,
49 +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`.
51 +
52 +
53 ### React.render
54
55 ```javascript