naive-ui/playground/ssr/app.js

24 lines
360 B
JavaScript

import { h, defineComponent, ref } from 'vue'
import { NButton } from 'naive-ui'
const App = defineComponent({
setup () {
return {
count: ref(0)
}
},
render () {
return [
h(
NButton,
{
onClick: () => this.count++
},
{ default: () => this.count }
)
]
}
})
export default App