Skip to content

Instantly share code, notes, and snippets.

@ghalex

ghalex/index.vue Secret

Created May 21, 2021
Embed
What would you like to do?
Vue 3 - Script Setup
<script setup>
export { default as Foo } from './Foo.vue'
export { default as Bar } from './Bar.vue'
export const ok = Math.random()
</script>
<template>
<Foo/>
<Bar/>
<component :is="ok ? Foo : Bar"/>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment