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

--

--

--

Tech enthusiast i write blogs on Web Development and Mobile app development.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

The Node Package Manager Guide

Add Video to Your React Native App Using react-native-video

video clapper board used to record scene, take, and other production details

Pretty JSON is Pretty (Useful)

How to Setup a Sails.js Application.

Elastic Stack: Filebeat and Logstash

Weekly Digest 44/2021

Popular ORMs in JavaScript

How to setup Laravel with Vuetify using laravel-mix

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Akshay Devkate

Akshay Devkate

Tech enthusiast i write blogs on Web Development and Mobile app development.

More from Medium

What is a controlled component and why we use it in React

Context in Javascript an

What, why, when of redux

Restrict the number of times a function can be executed concurrently.