function isFragment(NodeType) { const isSymbol = typeof NodeType === 'symbol' if (isSymbol && NodeType.toString() === 'Symbol(react.fragment)') { return true } return false }