I am trying to do an inline conditional rendering like the following:
{var && <MyComponent />}
but it throws me this error:
Text strings must be rendered within a <Text> component
However when I do it like this:
{var !== '' && <MyComponent/ >}
It works perfectly fine.
Any idea why this happens?