children属性
1. 赋值
var childs = this.props.children;
2. 遍历
{ childs.map( (value, index) => (<li key={index}>{value}</li>) ) }
The code on the Github
children属性
1. 赋值
var childs = this.props.children;
2. 遍历
{ childs.map( (value, index) => (<li key={index}>{value}</li>) ) }
The code on the Github