forked from adamwong246/testeranto
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
06b7fda
commit fb25e91
Showing
12 changed files
with
32,317 additions
and
5,610 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import { | ||
require_client, | ||
require_react | ||
} from "./chunk-EAMZY4FU.js"; | ||
import { | ||
__toESM | ||
} from "./chunk-4ATCX2XT.js"; | ||
|
||
// src/ClassicalComponent.tsx | ||
var import_react = __toESM(require_react()); | ||
var import_client = __toESM(require_client()); | ||
var ClassicalComponent = class extends import_react.default.Component { | ||
constructor(props) { | ||
super(props); | ||
this.state = { | ||
count: 0 | ||
}; | ||
} | ||
// componentDidMount() { | ||
// console.info("componentDidMount"); | ||
// // const x = fetch("http://www.google.com") | ||
// // .then((response) => response.text()) | ||
// // .then(x => { | ||
// // console.warn("i am a genius", x) | ||
// // }); | ||
// // console.info("x", x); | ||
// // const y = fetch("http://www.google.com/", { mode: `no-cors` }) | ||
// // // .then((response) => response.text()) | ||
// // .then(x => { | ||
// // console.log("i am a genius!") | ||
// // }); | ||
// // console.info(y); | ||
// } | ||
render() { | ||
return /* @__PURE__ */ import_react.default.createElement("div", { style: { border: "3px solid green" } }, /* @__PURE__ */ import_react.default.createElement("h1", null, "Hello Marcus"), /* @__PURE__ */ import_react.default.createElement("pre", { id: "theProps" }, JSON.stringify(this.props)), /* @__PURE__ */ import_react.default.createElement("p", null, "foo: ", this.props.foo), /* @__PURE__ */ import_react.default.createElement("pre", { id: "theState" }, JSON.stringify(this.state)), /* @__PURE__ */ import_react.default.createElement("p", null, "count: ", this.state.count, " times"), /* @__PURE__ */ import_react.default.createElement("button", { id: "theButton", onClick: async () => { | ||
this.setState({ count: this.state.count + 1 }); | ||
} }, "Click")); | ||
} | ||
}; | ||
var LaunchClassicalComponent = () => { | ||
document.addEventListener("DOMContentLoaded", function() { | ||
const elem = document.getElementById("root"); | ||
if (elem) { | ||
console.log("DOMContentLoaded and root found", ClassicalComponent); | ||
import_client.default.createRoot(elem).render(import_react.default.createElement(ClassicalComponent)); | ||
} | ||
}); | ||
}; | ||
var ClassicalComponent_default = LaunchClassicalComponent; | ||
|
||
export { | ||
ClassicalComponent, | ||
LaunchClassicalComponent, | ||
ClassicalComponent_default | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.