blob: 16855fd11f00fc7c91cbbed6ce14800a13416e7c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
import { Main } from "./main";
import classNames from "classnames";
const Base = ({}) => {
const name =
typeof location !== "undefined"
? decodeURIComponent(location.search.substring(1))
: null;
return <Main productName={name || "Bundler"} />;
};
function startReact() {
const ReactDOM = require("react-dom");
ReactDOM.render(<Base />, document.querySelector("#reactroot"));
}
if (typeof window !== "undefined") {
console.log("HERE!!");
globalThis.addEventListener("DOMContentLoaded", () => {
startReact();
});
startReact();
}
export { Base };
|