-
Notifications
You must be signed in to change notification settings - Fork 47.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
idea : support object literal property value shorthand in jsx syntax #2536
Comments
I'm inclined to say no. We've talked a lot about making use of different syntaxes and we're trying to keep it as minimal as possible. Adding the cc @sebmarkbage |
We try to keep syntax discussions over in: https://github.com/facebook/jsx That way we can have a wider group contributing to this syntax to make it worth it's extra weight to the language. I think that the difference between I like the way you think though. If you feel strongly about this you should open up an issue at https://github.com/facebook/jsx |
^ A proposal for the object expression syntax as discussed here.
Confusion might be relative. <Foo {item} /> and <Foo {...item} /> aren't confusing if you look at it from ES8 object notation perspective. once someone understands that jsx transpiles to It's confusing that |
the idea would be to be able to do :
what would you think of it ?
The text was updated successfully, but these errors were encountered: