babel-plugin-jsx icon indicating copy to clipboard operation
babel-plugin-jsx copied to clipboard

[Question] How to solve typescript type error when using dynamic tag?

Open danranVm opened this issue 4 years ago • 0 comments

🧐 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>
  },
})

🚑 Other information

danranVm avatar Jul 21 '21 03:07 danranVm