import { createBrowserHistory } from 'history'; import React from 'react'; import { createRoot } from 'react-dom/client'; import createAppStore from 'Store/createAppStore'; import App from './App/App'; import 'Diag/ConsoleApi'; export async function bootstrap() { const history = createBrowserHistory(); const store = createAppStore(history); const container = document.getElementById('root'); const root = createRoot(container!); // createRoot(container!) if you use TypeScript root.render(); }