Fragment refs - Remove unused ref from focus fragment example (#8056)

This commit is contained in:
Sébastien Lorber
2025-10-13 12:39:04 +02:00
committed by GitHub
parent 02ecdeda7c
commit a677ba3424

View File

@@ -317,8 +317,6 @@ Fragment refs provide focus management methods that work across all DOM nodes wi
import { Fragment, useRef } from 'react';
function FocusFragment({ children }) {
const fragmentRef = useRef(null);
return (
<Fragment ref={(fragmentInstance) => fragmentInstance?.focus()}>
{children}