import React, { useRef, useCallback } from 'react'; import LetterInput from './LetterInput'; import ActorPopover from './ActorPopover'; export default function GameRow({ actorName, pos, colStart, totalWidth }) { const inputRefs = useRef([]); const setInputRef = useCallback((index) => (el) => { inputRefs.current[index] = el; }, []); const focusInput = useCallback((index) => { inputRefs.current[index]?.focus(); }, []); const letters = actorName.split(''); return (