RWKV-Runner/frontend/src/main.tsx
2023-07-28 12:30:05 +08:00

26 lines
600 B
TypeScript

import React from 'react';
import { createRoot } from 'react-dom/client';
import './style.scss';
import 'react-toastify/dist/ReactToastify.css';
import App from './App';
import { HashRouter } from 'react-router-dom';
import { startup } from './startup';
import './_locales/i18n-react';
import 'html-midi-player';
import { WindowShow } from '../wailsjs/runtime';
startup().then(() => {
const container = document.getElementById('root');
const root = createRoot(container!);
root.render(
<HashRouter>
<App />
</HashRouter>
);
// force display the window
WindowShow();
});