Skip to content

Commit 9e0088d

Browse files
authored
Fragment refs - Remove unused ref from focus fragment example
1 parent 2495353 commit 9e0088d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/content/reference/react/Fragment.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,6 @@ Fragment refs provide focus management methods that work across all DOM nodes wi
317317
import { Fragment, useRef } from 'react';
318318

319319
function FocusFragment({ children }) {
320-
const fragmentRef = useRef(null);
321-
322320
return (
323321
<Fragment ref={(fragmentInstance) => fragmentInstance?.focus()}>
324322
{children}

0 commit comments

Comments
 (0)