<template>
    <div>
      <hook1 v-if="flag"></hook1>
      <button @click="flag = !flag">change</button>
    </div>
  </template>
  
  <script setup lang="ts">
  import hook1 from "./hook1.vue"
  import {ref} from 'vue'
  
  let flag = ref<boolean>(true)
  </script>
  
  <style lang="less">
  </style>