请问这个:Target container is not a DOM element. 怎么解决呢??
<!DOCTYPE html>
<html>
<head>
<script src="../build/react.js"></script>
<script src="../build/react-dom.js"></script>
<script src="../build/browser.min.js"></script>
</head>
<body>
<div class="container"></div>
<script type="text/babel">
var ClickButton = React.createClass({
render:function () {
return(
<div>
<button>显示|隐藏</button><span>点击测试</span>
</div>
)
}
});
var TestInput = React.createClass({
getInitialState: function () {
return{
inputContent:''
}
},
render: function () {
return(
<div>
<input type="text"/><span>{this.state.inputContent}</span>
</div>
)
}
});
//ReactDOM.render(<Input/>, document.body);
ReactDOM.render(<div><ClickButton/> <TestInput/></div>,document.getElementById('container'));
</script>
</body>
</html>