Skip to content

Commit

Permalink
docs: fix typo in ClickLogger constructor (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
psyirius authored Jun 6, 2024
1 parent 7f0cc38 commit f54b3ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sites/docs/content/utilities/use-event-listener.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class ClickLogger() {
#clicks = $state(0)

constructor() {
useEventListener(document.body, "click", () => count++);
useEventListener(document.body, "click", () => this.#clicks++);
}

get clicks() {
Expand Down

0 comments on commit f54b3ba

Please sign in to comment.