how to check if a object is component? #7124
Replies: 4 comments 2 replies
-
If you provide a |
Beta Was this translation helpful? Give feedback.
-
I import svg from xicons: if define as JSX.Element: but when i use as Component if I pass it to a render function as parameter, each one should be possible, so how can I check what type is passed? |
Beta Was this translation helpful? Give feedback.
-
Maybe what he needs is a way to tell exactly whether a variable is a component, to be sure to render it that way? |
Beta Was this translation helpful? Give feedback.
-
this is what the icon component looks as: |
Beta Was this translation helpful? Give feedback.
-
it has properties: 'name' and 'render(_ctx,_cache)' function
use this to check?
Beta Was this translation helpful? Give feedback.
All reactions