2 parents 99edbcf + e8bafe9 commit 6a05ce6Copy full SHA for 6a05ce6
1 file changed
README.md
@@ -63,8 +63,8 @@ function Counter({ initialCount }: {
63
<!-- The text node will be updated automatically
64
when the value of `count` changes. -->
65
<p className="count">Count: {count}</p>
66
- <button onclick={() => count.value++}>+</button>
67
- <button onclick={() => count.value--}>-</button>
+ <button on:click={() => count.value++}>+</button>
+ <button on:click={() => count.value--}>-</button>
68
</div>
69
);
70
}
@@ -82,7 +82,7 @@ const toggleHidden = () => {
82
83
return (
84
<>
85
- <button onclick={toggleHidden}>Toggle</button>
+ <button on:click={toggleHidden}>Toggle</button>
86
<p hidden={hidden}>Hidden text</p>
87
</>
88
0 commit comments