RWKV-Runner/frontend/src/main.tsx
2023-06-04 11:53:50 +08:00

25 lines
573 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 { 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();
});