doc(auth0-blog): add React v18 note

This commit is contained in:
dancingCycle 2022-07-21 22:01:30 +02:00
parent 942d4f062b
commit 7fdb97cd39
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ import Auth0ProviderWithHistory from './auth/auth0-provider-with-history';
if (process.env.NODE_ENV !== 'production') {
console.log('development mode');
}
//since react 18
/*ReactDOM.render is no longer supported in React 18. Use createRoot instead.*/
import { createRoot } from 'react-dom/client';
//create root container
const root = createRoot(document.getElementById("root"));