- 
                Notifications
    You must be signed in to change notification settings 
- Fork 132
Open
Description
side note : following the issue facebook/react/issues/2536
what I'd like to be able to do with jsx is this :
{this.state.list.map((item, key) => <MyComponent {item, key} />)}I know it's not to be considered a big syntax issue, its just sugar, but it seems logical to me that after supporting the spread operator, as this other ES6 feature is supported by jstransform/jsx
as @sebmarkbage said in the related react issue, the <Foo item /> syntax is supported for boolean attributes, but IMO
var item = "value"
return <Foo {item}/>isn't that confusing as it is going to get supported by various browsers soon, and developers will have to know it.
so now, I think it's all about discussing this proposal 😄
wmertens, aarongodin, joews, vaukalak, insin and 226 moreConnorelsea, fgarcia, RodrigoRoaRodriguez, beck, giuseppeg and 49 more
Metadata
Metadata
Assignees
Labels
No labels