InterviewHubPRO
Section Overview
Q373

Question 373 of 445

Part 11: Legacy Architecture, Migration Patterns & Historical Internals (354 - 445)

84%
React & Modern Frontend (445 Qs)•Part 11: Legacy Architecture, Migration Patterns & Historical Internals (354 - 445)

What is the purpose of render method of react-dom?

This method is used to render a React element into the DOM in the supplied container and return a reference to the component. If the React element was previously rendered into container, it will perform an update on it and only mutate the DOM as necessary to reflect the latest changes.

css
    ReactDOM.render(element, container, [callback])
python
If the optional callback is provided, it will be executed after the component is rendered or updated.