Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
anonzzzies
on Dec 4, 2023
|
parent
|
context
|
favorite
| on:
Learn how modern JavaScript frameworks work by bui...
I never used svelte, so it’s probably a weird question, but how is increment() called?
698969
on Dec 4, 2023
[–]
The calling location has been omitted from the snippet. You don't need to do anything special to call it, just `increment()` wherever it's in scope.
`<button on:click={() => increment()}>+</button>`
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: