-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
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
Backtick string template literal in TSX without curly brackets #40662
Comments
You should probably create a TC39 proposal for this, because this wouldn't be legal JSX. |
@MartinJohns JSX is not plain JavaScript. I don't think TC39 would care. |
Good point, I wasn't aware of that. But there should still be special consideration for |
|
It does not prevent ES5 translation.
To be fair, I understand the curly braces can be annoying (and a distraction), but the difference is really negligible:
|
I guess this depends on facebook/jsx#25 |
We don't want to create a variant of a variant - the linked issue above should be resolved first, at which point we can trivially take up a fix on our side. |
This issue has been marked as 'External' and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
Search Terms
backtick string template literal react tsx
Suggestion
Curly brackets wrapping around quotes is visually noisy. It would be nice to have string interpolation without having to use curly brackets.
Use Cases
Examples
Checklist
My suggestion meets these guidelines:
The text was updated successfully, but these errors were encountered: