From 4838df315931bb883f704ec3e1abe2685f296cdf Mon Sep 17 00:00:00 2001
From: HsiangNianian <admin@jyunko.cn>
Date: Sat, 22 Apr 2023 19:52:26 +0800
Subject: 😀
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 docs/components/useIsomorphicLayoutEffect.tsx | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 docs/components/useIsomorphicLayoutEffect.tsx

(limited to 'docs/components/useIsomorphicLayoutEffect.tsx')

diff --git a/docs/components/useIsomorphicLayoutEffect.tsx b/docs/components/useIsomorphicLayoutEffect.tsx
new file mode 100644
index 0000000..c685670
--- /dev/null
+++ b/docs/components/useIsomorphicLayoutEffect.tsx
@@ -0,0 +1,7 @@
+import * as React from "react";
+
+const useIsomorphicLayoutEffect =
+  typeof window !== "undefined" ? React.useLayoutEffect : React.useEffect;
+
+/* eslint-disable-next-line import/no-default-export -- TODO: Fix ESLint Error (#13355) */
+export default useIsomorphicLayoutEffect;
-- 
cgit v1.2.3-70-g09d2

