ReactDOM.render()

ReactDOM.render(component, container[, callback]) replaces any existing DOM elements inside the container node. Repeatedcalls use a DOM diffing algorithm for efficient updates. It only modifies the children of the container node, and not the container node itself.

ReactDOM.render() currently returns a reference to the root ReactComponent instance. However, using this return value should be avoided because future versions of React may render components asynchronously. If you need a reference to the root ReactComponent instance, you should attach a callback ref to the root element.

If an optional callback is provided as the third parameter, it will be executed after the component is rendered or updated.