mirror of
https://github.com/bendtherules/react-fiber-traverse.git
synced 2026-08-18 13:52:36 +00:00
Add basic traverse function with tests
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
function isNodeSimple(node) {
|
||||
return (typeof node.type === "string") || node.type === null;
|
||||
}
|
||||
|
||||
export { isNodeSimple };
|
||||
Reference in New Issue
Block a user