diff --git a/index.html b/index.html index ea8a65d..851bf73 100644 --- a/index.html +++ b/index.html @@ -121,7 +121,7 @@
- If that sounds good, it's time to back up those claims! + Sounds good? Continue reading to find out how to try it yourself!
@@ -252,14 +252,13 @@ component(myComponent) //Registers it as <my-component>
-return html.span(
- { dataset: {
+return html.span({
+ dataset: {
from: "Fire",
to: "Heat",
snakeCase: "converted"
- } },
- "Heat from Fire"
-)
+ }
+}, "Heat from Fire")
-return html.div(
- { shadowRoot: [
+return html.div({
+ shadowRoot: [
html.p("Shadow DOM text"),
"Arrays work too :)"
- ]},
- "Light DOM text"
-)
+ ]
+}, "Light DOM text")
const task = value =>
-html.flexRow (
- {class: "todo", gap: 1},
- value,
- html.span("[x]", {
- style: {
- color: "var(--primary-6)",
- cursor: "pointer"
- },
- click(event) {
- event
- .target
- .closest(".todo")
- .remove()
- }
- })
-)
+ html.flexRow(
+ { class: "todo", gap: 1 },
+ value,
+ html.span("[x]", {
+ style: { cursor: "pointer" },
+ click(event) {
+ event
+ .target
+ .closest(".todo")
+ .remove()
+ }
+ })
+ )
+
let todo, input
return todo = html.flexColumn(
{gap: 1},