rendering via function in react js code example Example: ReactDOM.render() ReactDOM.render(element, container[, callback])