Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react.children.toarray explained

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.
 
PREVIOUS NEXT
Tagged: #explained
ADD COMMENT
Topic
Name
6+4 =