15 lines
441 B
TypeScript
15 lines
441 B
TypeScript
import ReactDOM from "react-dom/client";
|
|
import { Provider } from "react-redux";
|
|
|
|
import Widget from "./widget/index";
|
|
import './assets/index.css';
|
|
import store from "./app/store";
|
|
|
|
const root = ReactDOM.createRoot(document.getElementById("root") as HTMLElement);
|
|
const hostId = new URLSearchParams(location.search).get("host");
|
|
root.render(
|
|
hostId ? <Provider store={store}>
|
|
<Widget hostId={Number(hostId)} />
|
|
</Provider> : null
|
|
);
|