mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-12 08:47:40 -05:00
19 lines
534 B
JavaScript
19 lines
534 B
JavaScript
import React from 'react';
|
|
import { createRoot } from 'react-dom/client';
|
|
import { BrowserRouter } from "react-router-dom";
|
|
import { Provider } from 'react-redux'
|
|
import setupStore from './redux-router/configureStore'
|
|
|
|
import App from "./app"
|
|
|
|
const store = setupStore(/* provide initial state if any */)
|
|
|
|
const container = document.getElementById('root');
|
|
const root = createRoot(container);
|
|
root.render(
|
|
<Provider store={store}>
|
|
<BrowserRouter>
|
|
<App store={store}/>
|
|
</BrowserRouter>
|
|
</Provider>
|
|
) |