Skip to content

Instantly share code, notes, and snippets.


ghalex/index.vue Secret

Created May 21, 2021
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()
<component :is="ok ? Foo : Bar"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment