mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-02 02:43:33 +00:00
11 lines
214 B
TypeScript
11 lines
214 B
TypeScript
import { useEffect, useState } from 'react';
|
|
|
|
export const useIsMounted = () => {
|
|
const [isMounted, setIsMounted] = useState(false);
|
|
|
|
useEffect(() => {
|
|
setIsMounted(true);
|
|
}, []);
|
|
|
|
return isMounted;
|
|
};
|