mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-27 22:59:51 -05:00
34 lines
722 B
TypeScript
34 lines
722 B
TypeScript
import React from 'react';
|
|
import { createRoot } from 'react-dom/client';
|
|
import { hot } from 'react-hot-loader/root';
|
|
import { Provider } from 'react-redux';
|
|
|
|
import {
|
|
AppConfigurationProvider,
|
|
StyleBaseline,
|
|
ThemeProvider,
|
|
store,
|
|
} from '@verdaccio/ui-components';
|
|
|
|
import App from './App';
|
|
|
|
const container = document.getElementById('root');
|
|
const root = createRoot(container as HTMLElement);
|
|
|
|
const AppContainer = () => (
|
|
<Provider store={store}>
|
|
<AppConfigurationProvider>
|
|
<ThemeProvider>
|
|
<StyleBaseline />
|
|
<App />
|
|
</ThemeProvider>
|
|
</AppConfigurationProvider>
|
|
</Provider>
|
|
);
|
|
|
|
root.render(<AppContainer />);
|
|
|
|
// @ts-expect-error
|
|
if (module.hot) {
|
|
hot(AppContainer);
|
|
}
|