mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-06 04:52:21 -07:00
16 lines
548 B
TypeScript
16 lines
548 B
TypeScript
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(<App store={store} history={history} />);
|
|
}
|