react-archer
Version:
Draw arrows between DOM elements in React
8 lines (7 loc) • 305 B
TypeScript
import { useLayoutEffect } from 'react';
/**
* Ignores useLayoutEffect for server-side rendering. It's fine, since the
* server can't draw the arrows.
* https://medium.com/@alexandereardon/uselayouteffect-and-ssr-192986cdcf7a
*/
export declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;