我想在 Hook 中获取 Fiber 节点,但不知道怎么做?
import React from 'react';
export default function App() {
// get the FiberNode in this Component
return <div></div>;
}
我想在 Hook 中获取 Fiber 节点,但不知道怎么做?
import React from 'react';
export default function App() {
// get the FiberNode in this Component
return <div></div>;
}