-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
As per CoffeeScript's default behavior of evaluating statements, I was surprised to find that the following statements within a spread operator result in the CJSX error: SyntaxError: Unexpected end of input: unclosed CJSX_EL
render: ->
<SomeComponent {...{foo: "bar"}}/>
render: ->
foo = "bar"
<SomeComponent {...{foo}}/>
render: ->
foo = "bar"
<SomeComponent {...({foo})}/>
render: ->
foo = "bar"
<SomeComponent {...(do -> {foo})}/>
Expected output is for a structured assignment of { foo: foo } and passing that result to the spread method.
Metadata
Metadata
Assignees
Labels
No labels