Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Xinayder opened this issue Jun 5, 2016 · 0 comments
Open

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

Xinayder opened this issue Jun 5, 2016 · 0 comments

Comments

@Xinayder
Copy link

Xinayder commented Jun 5, 2016

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 Xinayder changed the title Component won't compile if there's a loop Class won't compile if code is wrapped in curly braces Jun 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant