Created
June 28, 2023 11:00
-
-
Save leifermendez/1bc32509305ab9272cd99940863dfc27 to your computer and use it in GitHub Desktop.
qwik-app.js
This file contains hidden or 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
"use strict"; | |
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); | |
const qwik = require("@builder.io/qwik"); | |
const Logo = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(() => { | |
return /* @__PURE__ */ qwik._jsxQ("div", null, null, /* @__PURE__ */ qwik._jsxQ("a", null, { | |
href: "https://qwik.builder.io/" | |
}, /* @__PURE__ */ qwik._jsxQ("img", null, { | |
alt: "Qwik Logo", | |
width: 400, | |
height: 147, | |
src: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F667ab6c2283d4c4d878fb9083aacc10f" | |
}, null, 3, null), 3, null), 3, "CQ_0"); | |
}, "Logo_component_T5JXal1aoPo")); | |
const Counter = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(() => { | |
const count = qwik.useSignal(0); | |
return /* @__PURE__ */ qwik._jsxQ("div", null, null, [ | |
/* @__PURE__ */ qwik._jsxQ("p", null, null, [ | |
"Count: ", | |
qwik._fnSignal((p0) => p0.value, [ | |
count | |
], "p0.value") | |
], 3, null), | |
/* @__PURE__ */ qwik._jsxQ("p", null, null, /* @__PURE__ */ qwik._jsxQ("button", null, { | |
onClick$: /* @__PURE__ */ qwik.inlinedQrl(() => { | |
const [count2] = qwik.useLexicalScope(); | |
return count2.value++; | |
}, "Counter_component_div_p_button_onClick_ZIkEtbnzEtM", [ | |
count | |
]) | |
}, "Increment", 3, null), 3, null) | |
], 3, "qi_0"); | |
}, "Counter_component_EH4rwzF8mBU")); | |
exports.Counter = Counter; | |
exports.Logo = Logo; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment