This commit is contained in:
Jorge Bucaran 2019-10-10 00:17:01 +09:00
parent 66d1644b35
commit 4f4a262858
No known key found for this signature in database
GPG Key ID: E54BA3C0E646DB30
1 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ Here's the first example to get you started: a counter that can go up or down. Y
app({
init: 0,
view: state =>
h("div", {}, [
h("main", {}, [
h("h1", {}, state),
h("button", { onClick: state => state - 1 }, "-"),
h("button", { onClick: state => state + 1 }, "+")
@ -52,7 +52,7 @@ Here's the first example to get you started: a counter that can go up or down. Y
</script>
</head>
<body>
<div id="app"></div>
<main id="app"></main>
</body>
</html>
```