import './bootstrap';
import React from 'react';
-import ReactDOM from 'react-dom';
+import { createRoot } from 'react-dom/client';
import toastr from 'toastr';
toastr.options.positionClass = 'toast-bottom-right';
import App from './app';
if (document.getElementById('react-root')) {
- ReactDOM.render(<App />, document.getElementById('react-root'));
+ const root = createRoot(document.getElementById('react-root'));
+ root.render(<App />);
}