Something went wrong. Try again.
Mirror: React hooks for accessible, common web interactions. UI super powers without the UI.
Something went wrong. Try again.
196 B · 6 lines
TypeScript
at main
1234567import { useEffect, useLayoutEffect } from 'react';
const useIsomorphicEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;
export { useIsomorphicEffect as useLayoutEffect };