class {
  onCreate () {
    this.state = { display: true };
  }

  toggle () {
    this.state.display = !this.state.display;
  }
}

<div key="root">
    <include('./child') if(state.display)/>
</div>
