Last active
April 23, 2022 17:51
-
-
Save danieljpgo/430505ccf3e91814af6e97133d9fdb62 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
export const useIsomorphicLayoutEffect = typeof window === 'object' | |
? React.useLayoutEffect | |
: React.useEffect; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment