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/>);