202012-29 React实现todolist功能 一、index.jsReactDOM.render(<React.StrictMode><TodoList/></React.StrictMode>,document.getElementById('root'));二、TodoList1、constructorconstructor(props){super(props);this.state={inputValue:'',list:[]}}2、renderrender(){return(<React.Fragment><div>{/*label标签的作用,扩大点击范围*/}<labelhtmlFor='insertArea'>输入内容</... 继续阅读 >