Skip to content

Commit

Permalink
green to red border
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwong246 committed Dec 4, 2024
1 parent 5f2b1d6 commit ce401f2
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ var ClassicalComponent = class extends import_react.default.Component {
};
}
render() {
return /* @__PURE__ */ import_react.default.createElement("div", { style: { border: "3px solid green" } }, /* @__PURE__ */ import_react.default.createElement("h1", { id: "theHeader" }, "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: "theStat" }, 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 () => {
return /* @__PURE__ */ import_react.default.createElement("div", { style: { border: "3px solid red" } }, /* @__PURE__ */ import_react.default.createElement("h1", { id: "theHeader" }, "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: "theStat" }, 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"));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
import {
ClassicalComponent,
require_client
} from "../../../chunk-2ZES6QAY.mjs";
} from "../../../chunk-2FNPKSAA.mjs";
import {
require_react
} from "../../../chunk-JE6WFJZI.mjs";
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/web/src/ClassicalComponent/test.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
ClassicalComponent,
require_client
} from "../../chunk-2ZES6QAY.mjs";
} from "../../chunk-2FNPKSAA.mjs";
import {
require_react
} from "../../chunk-JE6WFJZI.mjs";
Expand Down
2 changes: 1 addition & 1 deletion src/ClassicalComponent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class ClassicalComponent extends React.Component<IProps, IState> {

render() {
return (
<div style={{ border: '3px solid green' }}>
<div style={{ border: '3px solid red' }}>
<h1 id="theHeader">Hello Marcus</h1>
<pre id="theProps">{JSON.stringify(this.props)}</pre>
<p>foo: {this.props.foo}</p>
Expand Down

0 comments on commit ce401f2

Please sign in to comment.