test: update the test cases
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { useEffect, useRef } from 'react';
|
||||
import ReactFlow from 'reactflow';
|
||||
|
||||
export function RefReactFlow({ onGetRef }: { onGetRef: (element: HTMLDivElement | null) => void }) {
|
||||
const ref = useRef<HTMLDivElement | null>(null);
|
||||
|
||||
useEffect(() => {
|
||||
onGetRef(ref.current);
|
||||
}, []);
|
||||
|
||||
return <ReactFlow ref={ref} />;
|
||||
}
|
||||
Reference in New Issue
Block a user