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