Skip to content

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

@Xinayder

Description

@Xinayder

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions