mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
24 lines
416 B
Plaintext
24 lines
416 B
Plaintext
import hooks from '../../hooks';
|
|
|
|
class {
|
|
onCreate() {
|
|
hooks.record('foo', 'create', arguments, this);
|
|
}
|
|
|
|
onRender(){
|
|
hooks.record('foo', 'render', arguments, this);
|
|
}
|
|
|
|
onMount(){
|
|
hooks.record('foo', 'mount', arguments, this);
|
|
}
|
|
|
|
onUpdate(){
|
|
hooks.record('foo', 'update', arguments, this);
|
|
}
|
|
}
|
|
|
|
<div.foo>
|
|
Hello <span.name>${input.name}</span>!
|
|
</div>
|