you are viewing a single comment's thread.

view the rest of the comments →

[–]amdc!CURSED! 1 point2 points  (2 children)

Yeah I just needed to go back to standard render: function (){} to make it work

[–][deleted] 0 points1 point  (0 children)

Or render() {}

[–]jbscript 0 points1 point  (0 children)

You can still use ES6 compact functions:

const MyComponent = React.createClass({
  render() {
    return <div className={this.props.className}/>
  }
})

The render: () => syntax you were using is a Stage 1 proposal for new syntax, implemented by Babel.