Skip to content

Scheduling infrastructure for absolutely everyone.

157 B
Raw Blame
import { useEffect, useLayoutEffect } from "react";

export const useIsomorphicLayoutEffect = typeof document !== "undefined" ? useLayoutEffect : useEffect;