first commit
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
import { useEffect, useLayoutEffect } from "react";
|
||||
|
||||
const isSSR = typeof window === "undefined" || /ServerSideRendering/.test(navigator && navigator.userAgent);
|
||||
|
||||
export default isSSR ? useEffect : useLayoutEffect;
|
||||
Reference in New Issue
Block a user