diff --git a/docs/react-api.html b/docs/react-api.html index 300f00c9ab..435329b084 100644 --- a/docs/react-api.html +++ b/docs/react-api.html @@ -188,12 +188,11 @@ [...children] ) -

Create and return a new React element of the given type. The type argument can be either an -html tag name string (eg. 'div', 'span', etc), or a React class (created via React.createClass()).

+

Create and return a new React element of the given type. The type argument can be either a tag name string (such as 'div' or 'span'), or a React component type (a class or a function).

-

Code written with JSX will be converted to use React.createElement(). You will not typically invoke React.createElement() directly if you are using JSX. See React Without JSX to learn more.

+

Convenience wrappers around React.createElement() for DOM components are provided by React.DOM. For example, React.DOM.a(...) is a convenience wrapper for React.createElement('a', ...). They are considered legacy, and we encourage you to either use JSX or use React.createElement() directly instead.

-

Convenience wrappers around React.createElement() for DOM components are provided by React.DOM. For example, React.DOM.a(...) is a convenience wrapper for React.createElement('a', ...).

+

Code written with JSX will be converted to use React.createElement(). You will not typically invoke React.createElement() directly if you are using JSX. See React Without JSX to learn more.


cloneElement() #

React.cloneElement(
@@ -214,7 +213,9 @@ html tag name string (eg. 'div', 'span', etc), or a React class
 

createFactory() #

React.createFactory(type)
 
-

Return a function that produces React elements of a given type. Like React.createElement(), the type argument can be either an html tag name string (eg. 'div', 'span', etc), or a React class.

+

Return a function that produces React elements of a given type. Like React.createElement(), the type argument can be either a tag name string (such as 'div' or 'span'), or a React component type (a class or a function).

+ +

This helper is considered legacy, and we encourage you to either use JSX or use React.createElement() directly instead.

You will not typically invoke React.createFactory() directly if you are using JSX. See React Without JSX to learn more.