babel-plugin-jsx
babel-plugin-jsx copied to clipboard
[Question] How to solve typescript type error when using dynamic tag?
🧐 Problem Description
JSX element type 'TheadTag' does not have any construct or call signatures.
💻 Sample code
export default defineComponent({
setup() {
const TheadTag: ComputedRef<VNodeTypes>
return { TheadTag }
},
render() {
const { TheadTag } = this
return <TheadTag></TheadTag>
},
})