We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14cdc3d commit f799a0dCopy full SHA for f799a0d
1 file changed
1-Authentication/1-sign-in-react/SPA/src/index.js
@@ -1,5 +1,5 @@
1
import React from 'react';
2
-import ReactDOM from 'react-dom/client';
+import { createRoot } from 'react-dom/client';
3
import App from './App';
4
import { PublicClientApplication, EventType } from '@azure/msal-browser';
5
import { msalConfig } from './authConfig';
@@ -27,7 +27,7 @@ msalInstance.addEventCallback((event) => {
27
}
28
});
29
30
-const root = ReactDOM.createRoot(document.getElementById('root'));
+const root = createRoot(document.getElementById('root'));
31
root.render(
32
<App instance={msalInstance}/>
33
);
0 commit comments