I want to get the Fiber node in Hook,But don't know how to ?
import React from 'react';
export default function App() {
// get the FiberNode in this Component
return <div></div>;
}
I want to get the Fiber node in Hook,But don't know how to ?
import React from 'react';
export default function App() {
// get the FiberNode in this Component
return <div></div>;
}
I found the way, document.getElementById("root")._reactRootContainer._internalRoot.current