import React from 'react';
class AjaxIO extends React.Component {
constructor(props) {
super(props);
this.state = {
count: "1"
}
}
render() {
return (
<div>
{this.state.count}
</div>
);
}
};
export default AjaxIO;
此示例有效。但如果我改变回归。
<div>
<input value={this.state.count}>
</div>
我收到错误
Unterminated JSX contents
答案 0 :(得分:4)