|
function fitGraphInView() { |
|
editor.triggerFit(); |
|
} |
This is undefined.
And how to access those exitor.xxx methods?
const appContainerReference = useRef<HTMLDivElement>(null);
<TheGraph.App
ref={appContainerReference}
/>
This only get null and said
React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.
Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.