Skip to content

Can props.children only be used in the template? #1300

Answered by samijaber
brandonpittman asked this question in Q&A
Discussion options

You must be logged in to vote

The concept of children is not the same across all frameworks. Some of them (like Qwik) can't access them outside the render at all. So yeah, it can only be safely used in the template (only to be rendered).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by brandonpittman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants