react-tutorial icon indicating copy to clipboard operation
react-tutorial copied to clipboard

第四节 DOM操作 中 Refs小节 内的代码有错误

Open comeriven opened this issue 8 years ago • 0 comments

https://hulufei.gitbooks.io/react-tutorial/content/dom.html

Refs 小节中 class App extends Component { constructor() { return { userInput: '' }; }

这里应改为 constructor(props) { super(props) this.state = { userInput: '' } }

comeriven avatar Apr 23 '17 05:04 comeriven