lossless-cut/src/index.jsx

26 wiersze
524 B
JavaScript

import React, { Suspense } from 'react';
import { createRoot } from 'react-dom/client';
import App from './App';
import ErrorBoundary from './ErrorBoundary';
import './i18n';
import './fonts.css';
import './main.css';
const { app } = window.require('@electron/remote');
console.log('Version', app.getVersion());
const container = document.getElementById('root');
const root = createRoot(container);
root.render(
<ErrorBoundary>
<Suspense fallback={<div />}>
<App />
</Suspense>
</ErrorBoundary>,
);