Problem Statement
What is the purpose of ReactDOM.render()?
Explanation
ReactDOM.render() mounts or updates React elements into the DOM. It connects your React app to a real HTML container, typically linking JavaScript logic to browser display.
Code Solution
SolutionRead Only
ReactDOM.render(<App />, document.getElementById('root'));