We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 97bae39 + 2067143 commit 6891b2eCopy full SHA for 6891b2e
1 file changed
src/React.js
@@ -17,7 +17,15 @@ exports.getRefs = function(ctx) {
17
18
exports.getChildren = function(ctx) {
19
return function() {
20
- return ctx.props.children;
+ var children = ctx.props.children;
21
+
22
+ var result = [];
23
24
+ React.Children.forEach(children, function(child){
25
+ result.push(child);
26
+ });
27
28
+ return result;
29
};
30
31
0 commit comments