Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
maiieul committed Nov 2, 2023
1 parent a5204ac commit e576a24
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ import { component$, Slot, useStore } from '@builder.io/qwik';
export default component$(() => {
return (
<Button onTripleClick$={() => alert('TRIPLE CLICKED!')}>
Triple Click me!
Triple click me!
</Button>
);
});
Expand Down Expand Up @@ -289,7 +289,7 @@ export const Button = component$<ButtonProps>(({ onTripleClick$ }) => {

⚠️ When using type annotations, we need to wrap the event type with `PropFunction` in order to tell TypeScript that the function can't be called synchronously.
```tsx
component$(({ onShow$ } : { onShow$?: PropFunction<() => void> }) => {
component$(({ onTripleClick$ } : { onTripleClick$?: PropFunction<() => void> }) => {
...
});
```
Expand Down

0 comments on commit e576a24

Please sign in to comment.