mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-22 03:42:14 +00:00
Fragment refs - Remove unused ref from focus fragment example (#8056)
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user