{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "use-isomorphic-layout-effect",
  "description": "A React hook that provides cross-platform compatibility for useLayoutEffect, automatically falling back to useEffect on the server-side to prevent hydration mismatches while maintaining synchronous DOM updates on the client.",
  "dependencies": [
    "react"
  ],
  "files": [
    {
      "path": "registry/hooks/use-isomorphic-layout-effect.ts",
      "content": "import { useEffect, useLayoutEffect } from 'react'\n\nexport const useIsomorphicLayoutEffect =\n    typeof window !== 'undefined' ? useLayoutEffect : useEffect",
      "type": "registry:hook",
      "target": "hooks/use-isomorphic-layout-effect.ts"
    }
  ],
  "type": "registry:hook"
}