mirror of
https://github.com/zoo-labs/zoo.git
synced 2026-11-10 22:32:34 +00:00
8 lines
191 B
TypeScript
8 lines
191 B
TypeScript
import { useEffect, useState } from 'react'
|
|
|
|
export default function useMounted() {
|
|
const [mounted, setMounted] = useState(false)
|
|
useEffect(() => setMounted(true), [])
|
|
return mounted
|
|
}
|