source: imaps-frontend/node_modules/react-use/esm/useIsomorphicLayoutEffect.js

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 208 bytes
Line 
1import { useEffect, useLayoutEffect } from 'react';
2import { isBrowser } from './misc/util';
3var useIsomorphicLayoutEffect = isBrowser ? useLayoutEffect : useEffect;
4export default useIsomorphicLayoutEffect;
Note: See TracBrowser for help on using the repository browser.