How to fix recent warning “ReactDOM.render is no longer supported in React 18”.
Recently, many of you might have been getting following error in browser console when you run the react app.
Warning message on browser console:
“Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it’s running…