Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Deprecation notice: ReactDOM.render is no longer supported in React 18

Deprecation notice: ReactDOM.render is no longer supported in React 18


For typescript go with the below:

const root = ReactDOM.createRoot(document.getElementById("root") as HTMLElement); 
root.render( <App/>);  
Source by itsjavascript.com #
 
PREVIOUS NEXT
Tagged: #Deprecation #longer #supported #React
ADD COMMENT
Topic
Name
4+1 =