We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In react, it's common to write TSX as { myVar && <MyComponent myVar={myVar} />} for optional rendering.
{ myVar && <MyComponent myVar={myVar} />}
We support such construct, but with current implementation
... return <> { '' && <MyComponent /> } </>;
will return an empty string, which is quite error prone - I learned this from having a bug report.
This also differs from react behavior where { '' && <Component />} results in not rendering the component - ref.
{ '' && <Component />}
Should we align react and our tsx behavior? @joyceerhl
The text was updated successfully, but these errors were encountered:
ulugbekna
No branches or pull requests
In react, it's common to write TSX as
{ myVar && <MyComponent myVar={myVar} />}
for optional rendering.We support such construct, but with current implementation
will return an empty string, which is quite error prone - I learned this from having a bug report.
This also differs from react behavior where
{ '' && <Component />}
results in not rendering the component - ref.Should we align react and our tsx behavior? @joyceerhl
The text was updated successfully, but these errors were encountered: