`{... this.props}`in jsx throws `replacement content must be a string`
Compiling this component with version 0.10.5 yields the error replacement content must be a string
.
The problem is the {...this.props}
, when doing var props = this.props;
and {...props}
in the component, it works fine.
const React = require('react');
module.exports = React.createClass({
render () {
var props = this.props;
return (
<div {...props} />
);
}
});