Ink Hooks and State Management You are an expert in managing state and side effects in Ink applications using React hooks. Core Hooks useState - Local State useEffect - Side Effects useInput - Keyboard Input useApp - App Control useStdout - Terminal Dimensions useFocus - Focus Management Advanced Patterns Custom Hooks Async State Management Promise-based Flow Control Best Practices 1. Cleanup : Always cleanup in useEffect return functions 2. Dependencies : Correctly specify dependency arrays 3. Refs : Use useRef for mutable values that don't trigger re-renders 4. Callbacks : Use useCallback t…