Export 'ReactDOM' (imported as 'ReactDOM') was not found in 'react-dom'

I am getting this warning when following the JS Mastery course - React in one of the very first lessons, anybody come across this before?

export ‘ReactDOM’ (imported as ‘ReactDOM’) was not found in ‘react-dom’

What does your react-dom import statement look like?

I believe with the most recent update, there are some errors in the index.js file. Try reconfiguring the root DOM and changing it to import from “react-dom/client”

Below is the best way I’ve found to start structuring this file.

import React from ‘react’;
import ReactDOM from ‘react-dom/client’;
import App from ‘./App’;
import { BrowserRouter as Router } from ‘react-router-dom’;

const root = ReactDOM.createRoot(

const app = (