Skip to content

Commit 6a05ce6

Browse files
committed
Merge branch 'dev'
2 parents 99edbcf + e8bafe9 commit 6a05ce6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ function Counter({ initialCount }: {
6363
<!-- The text node will be updated automatically
6464
when the value of `count` changes. -->
6565
<p className="count">Count: {count}</p>
66-
<button onclick={() => count.value++}>+</button>
67-
<button onclick={() => count.value--}>-</button>
66+
<button on:click={() => count.value++}>+</button>
67+
<button on:click={() => count.value--}>-</button>
6868
</div>
6969
);
7070
}
@@ -82,7 +82,7 @@ const toggleHidden = () => {
8282

8383
return (
8484
<>
85-
<button onclick={toggleHidden}>Toggle</button>
85+
<button on:click={toggleHidden}>Toggle</button>
8686
<p hidden={hidden}>Hidden text</p>
8787
</>
8888
);

0 commit comments

Comments
 (0)