File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/react-dom/src/client Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 7
7
* @flow
8
8
*/
9
9
10
- import * as React from 'react' ;
10
+ import { Children } from 'react' ;
11
11
import { getToStringValue , toString } from './ToStringValue' ;
12
12
13
13
let didWarnSelectedSetOnOption = false ;
@@ -21,7 +21,7 @@ function flattenChildren(children) {
21
21
// Note that this would throw on non-element objects.
22
22
// Elements are stringified (which is normally irrelevant
23
23
// but matters for <fbt>).
24
- React . Children . forEach ( children , function ( child ) {
24
+ Children . forEach ( children , function ( child ) {
25
25
if ( child == null ) {
26
26
return ;
27
27
}
@@ -45,7 +45,7 @@ export function validateProps(element: Element, props: Object) {
45
45
// TODO: this seems like it could cause a DEV-only throw for hydration
46
46
// if children contains a non-element object. We should try to avoid that.
47
47
if ( typeof props . children === 'object' && props . children !== null ) {
48
- React . Children . forEach ( props . children , function ( child ) {
48
+ Children . forEach ( props . children , function ( child ) {
49
49
if ( child == null ) {
50
50
return ;
51
51
}
You can’t perform that action at this time.
0 commit comments