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
Currently JSX supports the following syntax:
<Component {...properties}>
That works analogously to ES6:
var object = {...properties};
Below I am proposing to extend this syntax.
In ES6 I can write:
var object = {property};
as a shorthand for:
var object = {property: property};
I think that analogous syntax for JSX would be handy:
<Component {property}>
<Component property={property}>
and also for:
<Component {...{property}}>
Furthermore, allowing the following would be even better:
<Component {propertyA, ...propertySetA, propertyB: valueB, ...propertySetB}>
<Component propertyA={propertyA} {...propertySetA} propertyB={valueB} {...propertySetB}>
The text was updated successfully, but these errors were encountered:
Probably best submitted and discussed here: https://github.com/facebook/jsx
Sorry, something went wrong.
Sorry. Looks like a dup of facebook/jsx#23
No branches or pull requests
Currently JSX supports the following syntax:
That works analogously to ES6:
Below I am proposing to extend this syntax.
In ES6 I can write:
as a shorthand for:
I think that analogous syntax for JSX would be handy:
as a shorthand for:
and also for:
Furthermore, allowing the following would be even better:
as a shorthand for:
The text was updated successfully, but these errors were encountered: