1.Tolist案例(父子传参实现增删改) 目录结构 实现效果: App.jsx class App extends Component { // 状态在哪里, 操作状态的方法就在哪里 state = { todos:[ {id:1, name:'吃饭', done: true}, {id:2, name:'睡觉', done: true}, {id:3, name:'打代码', done: false}, {id:4, name:'光街', done: true}, ] } // addTod