0
- 我試圖在反應中顯示文本框。
但我得到一個錯誤。 未捕獲的語法錯誤:嵌入:JSX值應該是表達式或引用的JSX文本(8:26)未捕獲的語法錯誤:嵌入:JSX值應該是表達式或引用的JSX文本(8:26)
可以告訴我如何解決它。
- 在下面提供。
https://jsfiddle.net/q7yvmsa3/3/
var Hello = React.createClass({
render: function() {
return (<div>Hello {this.props.name}
<textarea value = this.state.value>
there should be only 140 characters
</textarea>
</div>);
}
});
ReactDOM.render(
<Hello name="World" />,
document.getElementById('container')
);