Is it possible to check if a component received children? #761
Unanswered
gabrielvincent
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Hi, sorry it's not immediately obvious! You can access the children of a component without rendering using |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need to check if the component has received children so I can conditionally render some thing. This is my use case. I want to set a attribute with different values depending on the value of
children
.Beta Was this translation helpful? Give feedback.
All reactions