Skip to content

DOM Portal easy #Components #Built-ins

By webfansplz @webfansplz

Take the Challenge    简体中文

Vue.js provides a built-in component that renders its slot content to another part of the DOM.

Do you know the built-in component?. Lets try it 👇:

<script setup>

const msg = "Hello World"

</script>

<template>
  <!-- Renders it to a child element of the `body` -->
  <span>{{ msg }}</span>
</template>


Share your Solutions Check out Solutions