Files
fredy/ui/src/Index.jsx

25 lines
629 B
React
Raw Normal View History

2025-12-11 10:40:55 +01:00
/*
* Copyright (c) 2026 by Christian Kellner.
2025-12-11 10:40:55 +01:00
* Licensed under Apache-2.0 with Commons Clause and Attribution/Naming Clause
*/
import React from 'react';
import { HashRouter } from 'react-router-dom';
2022-12-19 21:10:00 +01:00
import { createRoot } from 'react-dom/client';
2023-03-20 08:52:13 +01:00
import en_US from '@douyinfe/semi-ui/lib/es/locale/source/en_US';
import { LocaleProvider } from '@douyinfe/semi-ui';
2025-09-03 09:45:09 +02:00
import App from './App';
import './Index.less';
2023-03-20 08:52:13 +01:00
2022-12-19 21:10:00 +01:00
const container = document.getElementById('fredy');
const root = createRoot(container);
2022-12-19 21:10:00 +01:00
root.render(
<HashRouter>
<LocaleProvider locale={en_US}>
<App />
</LocaleProvider>
</HashRouter>,
);