Answers for "what does this error mean jsx element does not have any construct or call signatures."

3

JSX element type 'ButtonComponent' does not have any construct or call signatures

Assert the variable as a React.ElementType

Example:

const Component = (isFoo ? FooComponent : BarComponent) as React.ElementType
Posted by: Guest on October-06-2021

Code answers related to "what does this error mean jsx element does not have any construct or call signatures."

Code answers related to "Javascript"

Browse Popular Code Answers by Language