diff options
Diffstat (limited to 'demos/css-stress-test/src/index.tsx')
-rw-r--r-- | demos/css-stress-test/src/index.tsx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/demos/css-stress-test/src/index.tsx b/demos/css-stress-test/src/index.tsx new file mode 100644 index 000000000..3db53a67f --- /dev/null +++ b/demos/css-stress-test/src/index.tsx @@ -0,0 +1,20 @@ +import ReactDOM from "react-dom"; +import React from "react"; +import { Main } from "./main"; +import classNames from "classnames"; + +const Base = ({}) => { + const name = decodeURIComponent(location.search.substring(1)); + return <Main productName={name || "Bundler"} />; +}; + +function startReact() { + ReactDOM.render(<Base />, document.querySelector("#reactroot")); +} + +globalThis.addEventListener("DOMContentLoaded", () => { + startReact(); +}); +startReact(); + +export { Base }; |