Determine component type
With react it's possible to tag a component with a type:
In the card component:
Now I can find that Card.Section, again in card component:
Unfortunately, it doesn't seem possible with solidjs.
What I have done to determine whether a component is a Card.Section. Within CardSection.tsx
I'm setting:
Then to find it:
But is there a more idiomatic way?
In the card component:
Now I can find that Card.Section, again in card component:
Unfortunately, it doesn't seem possible with solidjs.
What I have done to determine whether a component is a Card.Section. Within CardSection.tsx
I'm setting:
'card-section': trueThen to find it:
But is there a more idiomatic way?
