1. What is the purpose of ReactDOM.render()?
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.
ReactDOM.render(<App />, document.getElementById('root'));