mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix type check for null (#25595)
This commit is contained in:
committed by
Rick Hanlon
parent
6de70ef00a
commit
76647a4dfd
+1
-1
@@ -287,7 +287,7 @@ function attemptResolveElement(
|
||||
}
|
||||
if (__DEV__) {
|
||||
jsxPropsParents.set(props, type);
|
||||
if (typeof props.children === 'object') {
|
||||
if (typeof props.children === 'object' && props.children !== null) {
|
||||
jsxChildrenParents.set(props.children, type);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user