diff options
author | 2021-06-20 17:38:55 -0700 | |
---|---|---|
committer | 2021-06-20 17:38:55 -0700 | |
commit | 6fbfd696990e77020a3d7359fdcbc3e01de40a60 (patch) | |
tree | 2660af3a4a2ed0cd4df582e7e177d6ae644c5b98 /demos/simple-react/public1/src | |
parent | 7b549c655161064402a5e10ccc6498c9a05132a3 (diff) | |
download | bun-6fbfd696990e77020a3d7359fdcbc3e01de40a60.tar.gz bun-6fbfd696990e77020a3d7359fdcbc3e01de40a60.tar.zst bun-6fbfd696990e77020a3d7359fdcbc3e01de40a60.zip |
Rename CSS stress test
Former-commit-id: cbb6f8b1a94e504cce875f90b45416177c9ac1d3
Diffstat (limited to 'demos/simple-react/public1/src')
-rw-r--r-- | demos/simple-react/public1/src/components/button.tsx | 26 | ||||
-rw-r--r-- | demos/simple-react/public1/src/index.tsx | 59 |
2 files changed, 0 insertions, 85 deletions
diff --git a/demos/simple-react/public1/src/components/button.tsx b/demos/simple-react/public1/src/components/button.tsx deleted file mode 100644 index bf30db5e7..000000000 --- a/demos/simple-react/public1/src/components/button.tsx +++ /dev/null @@ -1,26 +0,0 @@ -import * as jsx_dev_runtime_runtime from "http://localhost:8000node_modules/react/jsx-dev-runtime.js"; -var jsxDEV = require( jsx_dev_runtime_runtime).jsxDEV, __jsxFilename = "src/components/button.tsx"; - -import { - __require as require -} from "http://localhost:8000__runtime.js"; -import * as ttp_localhost_8000node_modules_module from "http://localhost:8000node_modules/react/index.js"; -var React = require(ttp_localhost_8000node_modules_module); -export const Button = ({ label, label2, onClick }) => jsxDEV("div", { - className: "Button", - onClick, - children: [jsxDEV("div", { - className: "Button-label", - children: [ - label, - "111" - ] - }, undefined, true, { - fileName: __jsxFilename, - lineNumber: 133 - }, this)] -}, undefined, true, { - fileName: __jsxFilename, - lineNumber: 86 -}, this); - diff --git a/demos/simple-react/public1/src/index.tsx b/demos/simple-react/public1/src/index.tsx deleted file mode 100644 index 9b7b60b88..000000000 --- a/demos/simple-react/public1/src/index.tsx +++ /dev/null @@ -1,59 +0,0 @@ -import * as jsx_dev_runtime_runtime from "http://localhost:8000node_modules/react/jsx-dev-runtime.js"; -import * as React_dot_jsx from "http://localhost:8000node_modules/react/jsx-dev-runtime.js"; -var jsxDEV = require( jsx_dev_runtime_runtime).jsxDEV, __jsxFilename = "src/index.tsx", Fragment = require( React_dot_jsx).Fragment; - -import { - __require as require -} from "http://localhost:8000__runtime.js"; -import * as ttp_localhost_8000node_modules_module from "http://localhost:8000node_modules/react-dom/index.js"; -var ReactDOM = require(ttp_localhost_8000node_modules_module); -import { Button} from "http://localhost:8000src/components/button.js"; -const Base = ({}) => { - return jsxDEV("main", { - children: [ - jsxDEV("h1", { - children: ["I am the page"] - }, undefined, true, { - fileName: __jsxFilename, - lineNumber: 132 - }, this), - jsxDEV("h3", { - className: "bacon", - children: ["Here is some text"] - }, undefined, true, { - fileName: __jsxFilename, - lineNumber: 161 - }, this), - jsxDEV( Fragment, { - children: ["Fragmen!t"] - }, undefined, true, { - fileName: __jsxFilename, - lineNumber: 212 - }, this), - jsxDEV(Button, { - label: "Do not click.", - onClick: () => alert("I told u not to click!"), - children: [] - }, undefined, true, { - fileName: __jsxFilename, - lineNumber: 234 - }, this) - ] - }, undefined, true, { - fileName: __jsxFilename, - lineNumber: 119 - }, this); - -}; - -function startReact() { - ReactDOM.render( jsxDEV( Base, { - children: [] - }, undefined, true, { - fileName: __jsxFilename, - lineNumber: 408 - }, this), document.querySelector("#reactroot")); -} -globalThis.addEventListener("DOMContentLoaded", () => { - startReact(); -}); |