This repository was archived by the owner on Aug 9, 2023. It is now read-only.
This repository was archived by the owner on Aug 9, 2023. It is now read-only.
node._owner
is too unstable #5
Closed
Description
#4 is insufficient. node._owner
is not always null
.
return ReactElement(
type,
key,
ref,
self,
source,
ReactCurrentOwner.current, // ← become _owner directry
props,
);
var ReactCurrentOwner = {
/**
* @internal
* @type {ReactComponent}
*/
current: (null: null | ReactInstance | Fiber),
};
node._owner
is so unstable that it is new ReactCompositeComponentWrapper
at my local. so can't use it for detect.
React own detect its element by isValidElement function use Symbol
, But i don't know whether hast-to-hyperscript
relate it better.
sorry for the confusion. my did was superficial.