S
SolidJS•2y ago
musiclover

How to add child component to component?

How to do it like... <MyComponent> <ChildComponent /> </MyComponent> I'm adding unnessary div to do it...
4 Replies
musiclover
musiclover•2y ago
Ok, I see props.children. But how to do it in Typescript?
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
musiclover
musiclover•2y ago
Yes I just foud it :)) Thanks brother. Just let's use ParentComponent type without any headache!! 🙂
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View