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 static properties #940

Closed
eddiemonge opened this issue Jun 28, 2017 · 4 comments

Comments

@eddiemonge
Copy link

commented Jun 28, 2017

This seems like it used to be supported but isn't anymore. The part that this breaking is the class property. Is this expected to be not working since the proposal for it changed a bit?

Parsing error: Unexpected token =

export default class Banner extends Component {
  static propTypes = {
    title: PropTypes.string
  }

  render () {
    <h1>{this.props.title}</h1>
  }
}
@rxgx

This comment has been minimized.

Copy link

commented Jul 18, 2017

That feature hasn't been added to the spec yet and, for our app, requires two modules: babel-eslint to parse the syntax and babel-plugin-transform-class-properties to preview the feature.

@fedorinoGore

This comment has been minimized.

Copy link

commented Feb 9, 2018

Nope. Using both babel-eslint and babel-plugin-transform-class-properties doesn't worked for me...

@stale

This comment has been minimized.

Copy link

commented May 10, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label May 10, 2018

@feross

This comment has been minimized.

Copy link
Member

commented May 11, 2018

This issue was fixed in standard v11 which was released several months ago. Closing!

@feross feross closed this May 11, 2018

@lock lock bot locked as resolved and limited conversation to collaborators Aug 9, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
4 participants
You can’t perform that action at this time.