how to render function in react code example Example: ReactDOM.render() ReactDOM.render(element, container[, callback])