typescript
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import '@fontsource/inter/400.css';
|
||||
|
||||
import React from 'react';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import { HashRouter } from 'react-router-dom';
|
||||
import './styles/index.css';
|
||||
import { AppStateProvider } from './app/appState';
|
||||
import AppRouter from './app/AppRouter';
|
||||
|
||||
const container = document.getElementById('app');
|
||||
|
||||
if (!container) {
|
||||
throw new Error('App root element #app not found');
|
||||
}
|
||||
|
||||
const root = createRoot(container);
|
||||
root.render(
|
||||
<AppStateProvider>
|
||||
<HashRouter hashType="hashbang">
|
||||
<AppRouter />
|
||||
</HashRouter>
|
||||
</AppStateProvider>,
|
||||
);
|
||||
Reference in New Issue
Block a user