Skip to content

Commit

Permalink
Update sites/svelte-5-preview/src/routes/docs/content/03-appendix/02-…
Browse files Browse the repository at this point in the history
…breaking-changes.md
  • Loading branch information
Rich-Harris authored Nov 14, 2023
1 parent fc429e0 commit b81dac7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ In Svelte 4, it was possible to specify event attributes on HTML elements as a s
<button onclick="alert('hello')">...</button>
```

This is considered an anti-pattern and is no longer possible in Svelte 5, where properties like `onclick` replace `on:click` as the mechanism for adding [event handlers](/docs/event-handlers).
This is not recommended, and is no longer possible in Svelte 5, where properties like `onclick` replace `on:click` as the mechanism for adding [event handlers](/docs/event-handlers).

0 comments on commit b81dac7

Please sign in to comment.