render top-level property
Renders a ReactElement
into the DOM in the supplied container
and returns a reference to the component
(or returns null for stateless components).
If the ReactElement
was previously rendered into the container
, this will perform an update on it and only
mutate the DOM as necessary to reflect the latest React component.
TODO: Is there any reason to omit the ReactElement
type for component
or the Element
type for container
?
Implementation
Function render = validateJsApiThenReturn(() => ReactDom.render);