-
Notifications
You must be signed in to change notification settings - Fork 131
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
Theoretical: Drop JSXText #8
Comments
Thank you for reporting this issue and appreciate your patience. We've notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed. |
The equivalent (ignoring whitespace and newline) using template strings: <div>
`Name of things: ${name},
Number of things: ${count}`
<span>
`Some ${cond ? children : null}`
</span>
</div> |
@gajus It's not equivalent though, you're including indentation and newlines. |
@syranide You are correct. 👍 Nevertheless, I wanted to include a template string example for visual reference only. Does indentation and newline matter here? |
@gajus It ends up in the source code and also affects
...over...
so those would also be affected by the leading and trailing whitespace. |
The only case it would matter is |
Bear with me here :)
JSX currently looks like this:
What if it looked like:
I imagine that it would be possible to omit
,
, if you would really want to.I realize this would be a ginormous departure from the heavily HTML-based syntax we have currently. From a purely theoretical/technical perspective it makes perfect sense in my opinion, but the practical aspects are obviously very questionable. I don't expect anyone to embrace this, but I think it's an interesting thought.
The text was updated successfully, but these errors were encountered: