The `createRoot` method creates the root and returns it. In React 18, instead of calling `ReactDOM.render` and passing in the app component and the DOM element, call `createRoot()` (which creates the root and returns it), pass in the DOM element, and then call render and pass the app component. ```jsx const root = ReactDOM.createRoot(document.getElementById('root')); root.render(<App />) ```