exportRender
Stability:
experimental
⚠️ Experimental feature, use at your riskTransform default export statement as defineRender
params in Vue SFC script-setup
.
Features | Supported |
---|---|
Vue 3 | ✅ |
Nuxt 3 | ❓ |
Vue 2 | ❓ |
Volar Plugin | ✅ |
Usage
vue
<script setup lang="tsx">
// JSX passed directly
export default <div>ok</div>
// Or using render function
export default () => <div>ok</div>
</script>