How can you type a component and use props.children
?
#1621
Replies: 1 comment
-
We currently resort to we have not yet built a mapping of Mitosis JSX types to each framework's types. This means that annotating anything framework-specific is not yet possible (children, nodes, event handlers, etc.) I'm going to close this discussion since it is blocked by the issue I linked above. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I can't figure out how to type
children
and adding prop types to a component that uses children makes TypeScript angry.Beta Was this translation helpful? Give feedback.
All reactions