diff --git a/react-dom-instance.js b/react-dom-instance.js index bac5309..2c21426 100644 --- a/react-dom-instance.js +++ b/react-dom-instance.js @@ -28,7 +28,8 @@ function getFiberFromNode(node) { function getFiberKey(node) { return Object.keys(node).find(key => ( - key.startsWith('__reactInternalInstance$') + key.startsWith('__reactInternalInstance$') || + key.startsWith('__reactFiber$') )); } @@ -88,4 +89,4 @@ function warn( msg ){ } module.exports.findInstance = findInstance; -module.exports = {findInstance}; \ No newline at end of file +module.exports = {findInstance};