2018-05-02 06:09:58 +00:00
|
|
|
// Import React!
|
|
|
|
import React from 'react';
|
2022-12-24 02:41:34 +00:00
|
|
|
import { createRoot } from 'react-dom/client';
|
2018-05-02 06:09:58 +00:00
|
|
|
import { I18nextProvider } from 'react-i18next';
|
2019-09-02 07:11:37 +00:00
|
|
|
import i18n from './i18n-seafile-editor';
|
2022-05-13 03:19:16 +00:00
|
|
|
import MarkdownEditor from './pages/markdown-editor';
|
2020-12-21 08:21:51 +00:00
|
|
|
|
2018-05-02 06:09:58 +00:00
|
|
|
import './index.css';
|
|
|
|
|
2022-12-24 02:41:34 +00:00
|
|
|
const root = createRoot(document.getElementById('root'));
|
|
|
|
root.render(
|
2019-08-31 14:58:38 +00:00
|
|
|
<I18nextProvider i18n={ i18n } >
|
2018-09-21 06:16:15 +00:00
|
|
|
<MarkdownEditor />
|
2022-12-24 02:41:34 +00:00
|
|
|
</I18nextProvider>
|
2018-05-02 06:09:58 +00:00
|
|
|
);
|