Answers for "jsx element type 'typist' does not have any construct or call signatures in react typescript"

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 "jsx element type 'typist' does not have any construct or call signatures in react typescript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language