https://jsbin.com/nisetupaqa/edit?html,js,console,output的getElementById引用錯誤反應
var App = React.createClass({
render(){
return(
<h1>Hello world</h1>
)
}
})
ReactDOM.render(<App />,getElementById('app-container'));
有什麼不對?無法獲得一個Hello World的工作,我得到的"ReferenceError: getElementById is not defined
嘗試['document.getElementById()'](https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementById)。 – Makyen