Typings of a wrapper component over Controller #1707
-
I'm trying to write a HOC that wraps the Controller component. Its props would simply be the props of the Controller component, and it would forward them to the Controller component. Intended usage would be a drop-in replacement for
I'm having an awfully hard time coming up with the type of the props though. I'm not sure I even fully understand the type definition in controller.d.ts. Could you lend a hand? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
@kotarella1110 could you please give a hand on type definition on Controller. Side note: what's the reason to write a wrapper on top of another? |
Beta Was this translation helpful? Give feedback.
@kotarella1110 could you please give a hand on type definition on Controller.
Side note: what's the reason to write a wrapper on top of another?