terminology: why @click instead of onclick etc #483
MentalGear
started this conversation in
General
Replies: 1 comment 1 reply
-
|
The idea is to pass the standard onclick attribute to the browser and @click is dealt by the compiler. Vue compatibility was also a thing on the original desing. However, I have started to feel that onclick is better. Similartly |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I appreciate the mission of building a "Web Standards Stack" framework, but I'm wondering why you are using @click instead of the standards based onclick (which svelte has also moved towards), and own attributes like @name instead of "id".
I think a standards stack framework that wants to be consistent should also use those standard terms, or at least provide a sensible explanation in the guide why it can't.
Beta Was this translation helpful? Give feedback.
All reactions