Getting an unexpected error when checking falsey non bool values for conditional rendering #2178
Unanswered
jottenlips
asked this question in
Help
Replies: 1 comment
-
these errors are drowning us a little bit because everything still renders so it is often missed 😅 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
getting
. A text node cannot be a child of a <View>.
when conditional rendering and not using
!!
const somePossibleFalseyValue = ''
{somePossibleFalseyValue && } ❌
{!!somePossibleFalseyValue && } ✅
Is this intended?
Thanks! Let me know if I can be of any help. Love this library and we are using it for our base components at my org.
Beta Was this translation helpful? Give feedback.
All reactions