Is there a way to break/return from Vue3 `<script setup>`?

Viewed 182

Is there a way to break/return from Vue3 <script setup>?

<script setup lang="ts">
  // code is not working, for illustration purpose
  if (!process.client) return

  // do something...
  const count = ref(0)
</script>
0 Answers
Related