I am trying to use the spread operator in react.js but getting the error Unexpected token ...
in Chrome.
I am getting an error at the line 3 in this code:
var Btn=React.createClass({
render: function(){
var { className, ...other }=this.props;
return (<a {...other} className={joinClasses(className,"btn")} href="#" >{this.props.children}</a>);
}
});
and using JSXtransformer.js for the compiling the JSX code.
What am I doing wrong that is causing the error?