📜  react.children.toarray 解释 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:35.253000             🧑  作者: Mango

代码示例1
Returns the children opaque data structure as a flat array with keys assigned to each child. 
Useful if you want to manipulate collections of children in your render methods, especially if you want to reorder or slice this.props.children before passing it down.