import React from 'react'; import ReactDOM from 'react-dom/client'; import App from './App.tsx'; const initApp = () => { const rootElement = document.getElementById('root'); if (!rootElement) { console.error("Could not find root element to mount to. Ensure
exists in index.html"); return; } const root = ReactDOM.createRoot(rootElement); root.render(