I have uncancelled plans for world domination, as I discovered several months ago that this is actually possible, like this:

<template>
  <CoolComponent />
</template>

<script setup>
  import { h } from 'vue';
  const CoolComponent = () => h('marquee', 'wheeeeeeeeeeeeeeeeeeeeee');
</script>

Plans for world domination have been cancelled due to vue's <script setup> having no known way to use render functions.

Please send assistance.

Feb 13, 2022, 2:35 PM
1 0 3

comments (single view)

$ref is great imo! If I was any good at naming/organizing functions then I'd be tempted to start using <script setup> just because there's less boilerplate, but I don't trust myself to keep things organized.

View all comments