mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
11 lines
224 B
Plaintext
11 lines
224 B
Plaintext
class {}
|
|
|
|
static function handleClick(component) {
|
|
if (component.clickCount === undefined) {
|
|
component.clickCount = 0;
|
|
}
|
|
|
|
component.clickCount++;
|
|
}
|
|
|
|
<button key="button" on-click(handleClick, component)/> |