SolidJSS
SolidJS3y ago
50 replies
Mathieu

How to get the first child out of `props.children`?

I think in React it is done like so:
React.Children.toArray(props.children)[0]
What would be the equivalent in SolidJS?
Was this page helpful?