mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
17 lines
231 B
Plaintext
17 lines
231 B
Plaintext
class {
|
|
onCreate() {
|
|
this.state = {
|
|
show: true
|
|
}
|
|
}
|
|
|
|
hide() {
|
|
this.state.show = false;
|
|
}
|
|
}
|
|
|
|
<div key="root">
|
|
<if(state.show)>
|
|
<text-display value=123/>
|
|
</if>
|
|
</div> |