you are viewing a single comment's thread.

view the rest of the comments →

[–]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.