Skip to content

Commit bab1157

Browse files
authored
Fix formatting and remove duplicate text in Fragment.md
1 parent 3f8fd07 commit bab1157

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

src/content/reference/react/Fragment.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ title: <Fragment> (<>...</>)
44

55
<Intro>
66

7-
`<Fragment>`, often used via `<>...</>` syntax, lets you group elements without a wrapper node.
8-
9-
<Canary> Fragments can also accept refs, which enable interacting with underlying DOM nodes without adding wrapper elements. See reference and usage below.</Canary>
7+
`<Fragment>`, often used via `<>...</>` syntax, lets you group elements without a wrapper node.
108

119
<Canary>Fragments can also accept refs, which enable interacting with underlying DOM nodes without adding wrapper elements.</Canary>
1210

@@ -761,19 +759,12 @@ function VisibleGroup({ onVisibilityChange, children }) {
761759
onVisibilityChange(visibleElements.size > 0);
762760
}
763761
);
764-
<<<<<<< HEAD
765-
766-
fragmentRef.current.observeUsing(observer);
767-
return () => fragmentRef.current.unobserveUsing(observer);
768-
}, [threshold, onVisibilityChange]);
769-
=======
770762
const fragmentInstance = fragmentRef.current;
771763
fragmentInstance.observeUsing(observer);
772764
return () => {
773765
fragmentInstance.unobserveUsing(observer);
774766
};
775767
}, [onVisibilityChange]);
776-
>>>>>>> 8bb31acb86bf68fa33d97dd0f1b834dfa71e2b1a
777768

778769
return (
779770
<Fragment ref={fragmentRef}>

0 commit comments

Comments
 (0)