Skip to content
This repository was archived by the owner on Aug 9, 2023. It is now read-only.

Commit cceb30e

Browse files
committed
Fix React detection
Related to remarkjs/remark-react#21.
1 parent ad75912 commit cceb30e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function hyperscript(h) {
6060
function react(h) {
6161
var node = h && h('div');
6262

63-
return node && node._store && node._owner == null;
63+
return node && node._store && node.key == null;
6464
}
6565

6666
/**

0 commit comments

Comments
 (0)