-
Notifications
You must be signed in to change notification settings - Fork 178
React.Fragment works but the short syntax (<>...</>
) doesn't
#542
Comments
I think that's related to microsoft/TypeScript#20469. |
Well, I'm confused. The issue you referenced seems to be requesting support for this in JSX even for non-React projects, but I'm experiencing these errors within a React project. Also, microsoft/TypeScript#19249 seems to indicate that So, I'm really confused why I'm still having this issue. Is this definitely not an issue with ATL? |
@devuxer You're right, I referenced some unrelated content, because problems with TS syntax aren't ATL responsibility, AFAIK, and considering that it only requires TS as peerDependency, the version used (must be) the same of your project. Can you try a fresh install, just to confirm that the correct versions work well together? |
Great suggestion, and that solved my problem! It turns out, I had not updated TypeScript to 2.6.2 as I thought. Apparently, entering Anyway, thanks for your help! |
In my .tsx file, I'm able to use
React.Fragment
:But I'm not able to use the short syntax:
The short syntax results in:
Are there plans to support the short syntax for JSX/TSX fragments?
The text was updated successfully, but these errors were encountered: