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