diff options
author | 2021-10-07 21:27:47 -0700 | |
---|---|---|
committer | 2021-10-07 21:27:47 -0700 | |
commit | ae7b91efe2076254d66d608052f4729fd34b3546 (patch) | |
tree | 1bc8f86ca8997c4801839f38326e7b3993efe651 /examples/css-stress-test/src/index.tsx | |
parent | 6d9ccd9b8edb149aee957b3e6c7668cc45ce7664 (diff) | |
download | bun-ae7b91efe2076254d66d608052f4729fd34b3546.tar.gz bun-ae7b91efe2076254d66d608052f4729fd34b3546.tar.zst bun-ae7b91efe2076254d66d608052f4729fd34b3546.zip |
Add CSS HMR benchmarkjarred/bench
Diffstat (limited to 'examples/css-stress-test/src/index.tsx')
-rw-r--r-- | examples/css-stress-test/src/index.tsx | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/examples/css-stress-test/src/index.tsx b/examples/css-stress-test/src/index.tsx deleted file mode 100644 index 4c288c3cc..000000000 --- a/examples/css-stress-test/src/index.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import { Main } from "./main"; -import classNames from "classnames"; -import ReactDOM from "react-dom"; - -const Base = ({}) => { - const name = - typeof location !== "undefined" - ? decodeURIComponent(location.search.substring(1)) - : null; - return <Main productName={name || "asdasdasdasdasdasd"} />; -}; - -function startReact() { - ReactDOM.hydrate(<Base />, document.querySelector("#reactroot")); -} - -if (typeof window !== "undefined") { - globalThis.addEventListener("DOMContentLoaded", () => { - startReact(); - }); - - startReact(); -} - -export { Base }; |