Skip to content

Commit f799a0d

Browse files
committed
update readme code
1 parent 14cdc3d commit f799a0d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • 1-Authentication/1-sign-in-react/SPA/src

1-Authentication/1-sign-in-react/SPA/src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import ReactDOM from 'react-dom/client';
2+
import { createRoot } from 'react-dom/client';
33
import App from './App';
44
import { PublicClientApplication, EventType } from '@azure/msal-browser';
55
import { msalConfig } from './authConfig';
@@ -27,7 +27,7 @@ msalInstance.addEventCallback((event) => {
2727
}
2828
});
2929

30-
const root = ReactDOM.createRoot(document.getElementById('root'));
30+
const root = createRoot(document.getElementById('root'));
3131
root.render(
3232
<App instance={msalInstance}/>
3333
);

0 commit comments

Comments
 (0)