Co-authored-by: Innei <tukon479@gmail.com>
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { useEffect, useState } from "react"
|
||||
|
||||
export const useIsClient = () => {
|
||||
const [isClient, setIsClient] = useState(false)
|
||||
|
||||
useEffect(() => {
|
||||
setIsClient(true)
|
||||
}, [])
|
||||
return isClient
|
||||
}
|
||||
Reference in New Issue
Block a user