English
render function[h()]
By 木荣 @murongg
For this challenge, you need use h
render function to implement a component.
Note: You should make sure that the props are passed correctly, event is triggered correctly and the slot content is rendered correctly. Lets go.
<script setup lang="ts">
import MyButton from "./MyButton.ts"
const onClick = () => {
console.log('onClick')
}
</script>
<template>
<MyButton :disabled="false" @custom-click="onClick">
my button
</MyButton>
</template>