lossless-cut/src/index.jsx

26 wiersze
524 B
React
Czysty Zwykły widok Historia

import React, { Suspense } from 'react';
2022-11-23 05:22:52 +00:00
import { createRoot } from 'react-dom/client';
2020-03-04 10:41:40 +00:00
import App from './App';
2020-04-10 14:04:19 +00:00
import ErrorBoundary from './ErrorBoundary';
import './i18n';
import './fonts.css';
import './main.css';
2020-03-04 10:41:40 +00:00
2022-11-22 15:23:41 +00:00
const { app } = window.require('@electron/remote');
2020-03-04 10:41:40 +00:00
2022-11-22 15:23:41 +00:00
console.log('Version', app.getVersion());
2020-03-04 10:41:40 +00:00
2022-11-23 05:22:52 +00:00
const container = document.getElementById('root');
const root = createRoot(container);
root.render(
<ErrorBoundary>
<Suspense fallback={<div />}>
<App />
</Suspense>
</ErrorBoundary>,
);