diff options
author | 2021-06-01 20:49:49 -0700 | |
---|---|---|
committer | 2021-06-01 20:49:49 -0700 | |
commit | ee6643ce8b8b3ac32d5ba71d2617b38bb03379af (patch) | |
tree | 728dd42e5c3bfb7272465610326868113f945a88 /demos/simple-react/public/src/components/button.js | |
parent | 38f1eb07012eaf0e09400ba06d06fe15007a9022 (diff) | |
download | bun-ee6643ce8b8b3ac32d5ba71d2617b38bb03379af.tar.gz bun-ee6643ce8b8b3ac32d5ba71d2617b38bb03379af.tar.zst bun-ee6643ce8b8b3ac32d5ba71d2617b38bb03379af.zip |
wip
Former-commit-id: a6bc130918f63bfbeac220f4e1fa55f08197e1c1
Diffstat (limited to 'demos/simple-react/public/src/components/button.js')
-rw-r--r-- | demos/simple-react/public/src/components/button.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/demos/simple-react/public/src/components/button.js b/demos/simple-react/public/src/components/button.js new file mode 100644 index 000000000..28bfffda7 --- /dev/null +++ b/demos/simple-react/public/src/components/button.js @@ -0,0 +1,23 @@ +import * as _react_dot_jsx from "http://localhost:8080/node_modules/react/index.js"; +var jsxDEV = __require(_react_dot_jsx).jsxDEV, __jsxFilename = "src/components/button.tsx"; + +import { +__require +} from "http://localhost:8080/__runtime.js"; +export const Button = ({ label, onClick }) => jsxDEV("div", { + className: "Button", + onClick, + children: jsxDEV("div", { + className: "Button-label", + children: label + }, null, false, { + filename: __jsxFilename, + lineNumber: 97, + columnNumber: 97 + }, this) +}, null, false, { + filename: __jsxFilename, + lineNumber: 50, + columnNumber: 50 +}, this); + |