mirror of
https://github.com/haiwen/seahub.git
synced 2025-04-29 03:35:08 +00:00
12 lines
335 B
JavaScript
12 lines
335 B
JavaScript
|
import React, { Suspense } from 'react';
|
||
|
import { createRoot } from 'react-dom/client';
|
||
|
import Loading from './components/loading';
|
||
|
import ExcaliEditor from './pages/excalidraw-editor';
|
||
|
|
||
|
const root = createRoot(document.getElementById('wrapper'));
|
||
|
root.render(
|
||
|
<Suspense fallback={<Loading />}>
|
||
|
<ExcaliEditor />
|
||
|
</Suspense>
|
||
|
);
|