mirror of
https://github.com/bendtherules/react-fiber-traverse.git
synced 2026-08-18 13:52:36 +00:00
Modify util.isConstructorHtmlLike - Allow null typeas input
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ function isNodeComponentClass(
|
|||||||
}
|
}
|
||||||
|
|
||||||
function isConstructorHtmlLike(
|
function isConstructorHtmlLike(
|
||||||
ctr: React.ElementType
|
ctr: React.ElementType | null
|
||||||
): ctr is Exclude<React.ElementType, React.ComponentType> {
|
): ctr is Exclude<React.ElementType, React.ComponentType> {
|
||||||
if (typeof ctr === "string" || ctr === null) {
|
if (typeof ctr === "string" || ctr === null) {
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user