Types are assignable to type 'ComponentType | ExoticComponent<{}> #259
-
Hi Everyone, I'm trying to use this dependency for my project by passing below props and components prop with my custom functional components as shown below.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Your typing is too narrow. I believe you want |
Beta Was this translation helpful? Give feedback.
Your typing is too narrow. I believe you want
React.ComponentType<TProps>
in order to handle class components or functional components