2024-05-21 10:13:54 +08:00
|
|
|
import React, { Suspense } from 'react';
|
2025-02-14 14:04:25 +08:00
|
|
|
import { createRoot } from 'react-dom/client';
|
2024-05-21 10:13:54 +08:00
|
|
|
import { I18nextProvider } from 'react-i18next';
|
2024-05-15 11:57:30 +08:00
|
|
|
import Wiki from './pages/wiki2';
|
2024-05-21 10:13:54 +08:00
|
|
|
import i18n from './_i18n/i18n-sdoc-editor';
|
|
|
|
import Loading from './components/loading';
|
2024-05-15 11:57:30 +08:00
|
|
|
|
2025-02-14 14:04:25 +08:00
|
|
|
const root = createRoot(document.getElementById('wrapper'));
|
|
|
|
root.render(
|
2024-05-21 10:13:54 +08:00
|
|
|
<I18nextProvider i18n={i18n}>
|
|
|
|
<Suspense fallback={<Loading />}>
|
|
|
|
<Wiki />
|
|
|
|
</Suspense>
|
2025-02-14 14:04:25 +08:00
|
|
|
</I18nextProvider>
|
2024-05-21 10:13:54 +08:00
|
|
|
);
|