From 9c3fd71b5209fcc3050f44604bd54d18e62c7d1b Mon Sep 17 00:00:00 2001 From: Aaron Franks Date: Sun, 7 Dec 2014 23:17:27 -0800 Subject: [PATCH] Add type signature info to top-level API docs. --- docs/ref-01-top-level-api.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/ref-01-top-level-api.md b/docs/ref-01-top-level-api.md index 39bc37b16..08425b730 100644 --- a/docs/ref-01-top-level-api.md +++ b/docs/ref-01-top-level-api.md @@ -14,7 +14,7 @@ redirect_from: "/docs/reference.html" ### React.createClass ```javascript -function createClass(object specification) +ReactComponent createClass(object specification) ``` 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. @@ -25,14 +25,14 @@ For more information about the specification object, see [Component Specs and Li ### React.createElement ```javascript -function createElement( +ReactElement createElement( string/ReactComponent type, [object props], [children ...] ) ``` -Create and return a new ReactElement of the given type. The type argument can be either an +Create and return a new `ReactElement` of the given type. The type argument can be either an html tag name string (eg. 'div', 'span', etc), or a `ReactComponent` class that was created with `React.createClass`.