[React] useRef

divė„¼ focus

const editSection = useRef<HTMLDivElement>(null);

editSection.current?.focus();

<div ref={editSection} tabIndex={-1}></div>

links

social