google / traceur-compiler

Traceur is a JavaScript.next-to-JavaScript-of-today compiler
Apache License 2.0
8.17k stars 580 forks source link

JSX: Add support for JSXSpreadAttribute #2082

Closed arv closed 8 years ago

arv commented 8 years ago

This allows spreading an object into props/attributes

<p a='a' {...{b: 1, c: 2}}/>
// same as (except the expansion happens at runtime
<p a='a' b={1} c={2}/>
arv commented 8 years ago

Last JSX PR for this time. I think everything should be implemented after this.

johnjbarton commented 8 years ago

LGTM

arv commented 8 years ago

Thanks. I'll clean up the comments.