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

2

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 "JSX element type 'ButtonComponent' does not have any construct or call signatures"

Code answers related to "Javascript"

Browse Popular Code Answers by Language