From 19d472c8470fc21a10af053824b3724e50ac9a9d Mon Sep 17 00:00:00 2001
From: Jarred Sumner <jarred@jarredsumner.com>
Date: Sun, 6 Jun 2021 18:34:16 -0700
Subject: hm

Former-commit-id: 024b2ea94ea2f32e058948c3d874ad73a03b7423
---
 demos/simple-react/public1/src/index.tsx | 59 ++++++++++++++++++++++++++++++++
 1 file changed, 59 insertions(+)
 create mode 100644 demos/simple-react/public1/src/index.tsx

(limited to 'demos/simple-react/public1/src/index.tsx')

diff --git a/demos/simple-react/public1/src/index.tsx b/demos/simple-react/public1/src/index.tsx
new file mode 100644
index 000000000..9b7b60b88
--- /dev/null
+++ b/demos/simple-react/public1/src/index.tsx
@@ -0,0 +1,59 @@
+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();
+});
-- 
cgit v1.2.3

