Recently i have been working in a React js project its show me an warning in my Browser Console which is like below screen shot:
don't worry i will Show you How to Solve this type of warning.
When react js warning ReactDOM.render is no longer supported in React 18
is happen then my index.js file is look like bellow screenshot:
to solve the ReactDOM.render is no longer supported in React 18 Warning i just change my index.js file. after changed index.js file now my index.js is look like below Screen shot:
That's it now the warning is gone. so finally Browser console is look like:
Thank you
Happy Coding
.
osman forhad
Full-Stack Developer💻 (Mobile App & Web App)
developer.osmanforhad@gmail.com
Top comments (15)
Thanks it worked for me
Welcome
Hi, how can I use react-router@6 in the new react updated version@18
please follow this: github.com/osmanforhad/react-routerV6
thank you for the helpful article
Welcome
thank you for not sharing any code
Thank you
Welcome
Thank you,
Welcome
Wow... Thank you so much sir !!
wellcome
why you don't use strict mode for react 18?
i think it's not relevant for me