mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-15 21:53:36 +01:00
18 lines
606 B
TypeScript
18 lines
606 B
TypeScript
import { StrictMode } from 'react';
|
|
import ReactDOM from 'react-dom/client';
|
|
import { App } from './components/App';
|
|
import { getKeyValue } from './lib/keyValueStore';
|
|
import { syncLastLocation } from './lib/lastLocation';
|
|
import { getPreferredAppearance, setAppearance } from './lib/theme/window';
|
|
import './main.css';
|
|
|
|
setAppearance(await getKeyValue({ key: 'appearance', fallback: getPreferredAppearance() }));
|
|
await syncLastLocation();
|
|
|
|
// root holds our app's root DOM Element:
|
|
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
|
|
<StrictMode>
|
|
<App />
|
|
</StrictMode>,
|
|
);
|