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