English
DOM Portal
By webfansplz @webfansplz
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>