mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix usage of Boolean constructor
This commit is contained in:
@@ -288,7 +288,7 @@ var DOMRenderer = ReactFiberReconciler({
|
||||
},
|
||||
|
||||
shouldDeprioritizeSubtree(type : string, props : Props) : boolean {
|
||||
return Boolean(props.hidden);
|
||||
return !!props.hidden;
|
||||
},
|
||||
|
||||
createTextInstance(
|
||||
|
||||
@@ -102,7 +102,7 @@ var NoopRenderer = ReactFiberReconciler({
|
||||
resetTextContent(instance : Instance) : void {},
|
||||
|
||||
shouldDeprioritizeSubtree(type : string, props : Props) : boolean {
|
||||
return Boolean(props.hidden);
|
||||
return !!props.hidden;
|
||||
},
|
||||
|
||||
createTextInstance(
|
||||
|
||||
Reference in New Issue
Block a user