summaryrefslogtreecommitdiff
path: root/jb-ui/src/main.tsx
blob: 538bea28f6be740aacd536397272e5079710af1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import React from 'react';
import ReactDOM from 'react-dom/client';
import { Provider } from 'react-redux'
import { store } from '@/store'
import JBApp from "@/JBApp";

const rootElement = document.getElementById('root');
if (!rootElement) {
    throw new Error('Failed to find the root element');
}
const root = ReactDOM.createRoot(rootElement);

root.render(
    <React.StrictMode>
        <Provider store={store}>
            <JBApp />
        </Provider>
    </React.StrictMode >
);