coffee-react-transform icon indicating copy to clipboard operation
coffee-react-transform copied to clipboard

Class won't compile if code is wrapped in curly braces

Open Xinayder opened this issue 8 years ago • 0 comments

When I'm writing a custom component, I simply cannot use curly braces/brackets to evaluate an expression.

The following code won't compile/transform:

App = React.createClass
  render: ->
    {@props.children}

CoffeeLint and CJSX itself throw the following error:

[stdin]:6:12: error: unexpected . at line 6 col 5

Xinayder avatar Jun 05 '16 16:06 Xinayder