React学习笔记

1.ul,li列表的循环(配合数组的map方法)

2.数组中新增一个元素(配合扩展运算符)

3.删除某个循环列表的元素(index传参,配合数组的splice方法)

4.父子组件传参(父传子)

index,value为自定义属性,这里注意需要唯一的key

子组件接受参数(利用的是this.props.index和this.props.value)

原文地址:https://www.cnblogs.com/jsjx-xtfh/p/9962780.html