Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
How to get the first child out of `props.children`? - SolidJS
S
SolidJS
•
3y 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]
React.Children.toArray(props.children)[0]
What would be the equivalent in SolidJS
?
SolidJS
Join
Solid is a declarative reactive Javascript library for creating user interfaces.
12,274
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Next page
Similar Threads
How to modify props of children?
S
SolidJS / support
8mo ago
How do I pass props to child components which are accessed through props.children?
S
SolidJS / support
4y ago
Pass every child in props.children a context of their index
S
SolidJS / support
3y ago