feishin/src/renderer/index.tsx

19 lines
532 B
TypeScript
Raw Normal View History

import { Notifications } from '@mantine/notifications';
2022-12-31 19:26:58 -08:00
import { QueryClientProvider } from '@tanstack/react-query';
2022-12-19 15:59:14 -08:00
import { createRoot } from 'react-dom/client';
import { App } from './app';
2022-12-31 19:26:58 -08:00
import { queryClient } from './lib/react-query';
2022-12-19 15:59:14 -08:00
const container = document.getElementById('root')! as HTMLElement;
const root = createRoot(container);
2022-12-31 19:26:58 -08:00
root.render(
<QueryClientProvider client={queryClient}>
<Notifications
containerWidth="300px"
position="bottom-center"
/>
2022-12-31 19:26:58 -08:00
<App />
</QueryClientProvider>,
);