File size: 247 Bytes
4d70170
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { defineComponent, h, reactive } from 'vue'

export default defineComponent({
  name: 'SetupRender',

  setup() {
    const state = reactive({
      name: 'Foo bar',
    })

    return () => {
      return h('h1', state.name)
    }
  },
})