Files
the-last-startyper/example/src/useMounted.ts
T
pastilhas 80f7aa3f8a chore: initialize typing-chud project with Unified API structure
- Copy vim-snake structure stripped of game-specific logic
- Remove finalScore calculation (raw data only)
- Setup example app with keybinding state management
- Empty board renders and waits for game logic
2025-11-03 21:36:09 +00:00

12 lines
204 B
TypeScript
Executable File

import { useState, useEffect } from 'react';
export const useMounted = () => {
const [mounted, setMounted] = useState(false);
useEffect(() => {
setMounted(true);
}, []);
return mounted;
};