mirror of
https://github.com/bendtherules/react-fiber-traverse.git
synced 2026-08-18 13:52:36 +00:00
utils - export doesElementContainRootFiberNode
This commit is contained in:
@@ -7,6 +7,7 @@ import {
|
||||
FiberNodeDOMContainer
|
||||
} from "./mocked-types";
|
||||
|
||||
// Support null in all of these
|
||||
function isNodeHtmlLike(node: FiberNode): node is FiberNodeisHTMLLike {
|
||||
return typeof node.type === "string" || node.type === null;
|
||||
}
|
||||
@@ -106,5 +107,6 @@ export {
|
||||
isConstructorHtmlLike,
|
||||
isConstructorComponentClass,
|
||||
isConstructorFunctionComponent,
|
||||
doesElementContainRootFiberNode,
|
||||
getRootFiberNodeFromDOM
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user