Rankin Zheng 63630ef5e7 Refactor file structure
Rename src/views to src and move index.html and index.tsx to the root directory.
2023-05-06 17:32:01 +08:00

14 lines
440 B
TypeScript

import * as React from 'react';
import ReactDOM from 'react-dom';
import { createRoot } from 'react-dom/client';
import { MantineProvider } from '@mantine/core';
import App from './views/App';
const container = document.getElementById('app')!;
const root = createRoot(container); // createRoot(container!) if you use TypeScript
root.render(
<MantineProvider withGlobalStyles withNormalizeCSS>
<App />
</MantineProvider>
);