Skip to content

Commit e37bd7c

Browse files
committed
Address feedback
1 parent 3996b92 commit e37bd7c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/content/reference/react/Fragment.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Wrap elements in `<Fragment>` to group them together in situations where you nee
3030
#### Props {/*props*/}
3131

3232
- **optional** `key`: Fragments declared with the explicit `<Fragment>` syntax may have [keys.](/learn/rendering-lists#keeping-list-items-in-order-with-key)
33-
- <ExperimentalBadge /> **optional** `ref`: A ref object or callback function. React will forward the ref to a `FragmentInstance` object that provides methods for interacting with the DOM nodes wrapped by the Fragment.
33+
- <ExperimentalBadge /> **optional** `ref`: A ref object (e.g. from [`useRef`](/reference/react/useRef)) or [callback function](/reference/react-dom/components/common#ref-callback). React provides a `FragmentInstance` as the ref value that implements methods for interacting with the DOM nodes wrapped by the Fragment.
3434

3535
### <ExperimentalBadge /> FragmentInstance {/*fragmentinstance*/}
3636

@@ -264,7 +264,7 @@ function ClickableFragment({ children, onClick }) {
264264
265265
### <ExperimentalBadge /> Tracking visibility with Fragment refs {/*tracking-visibility-with-fragment-refs*/}
266266
267-
Fragment refs are useful for visibility tracking and intersection observation. This enables you to monitor when content becomes visible without requiring the child components to expose refs:
267+
Fragment refs are useful for visibility tracking and intersection observation. This enables you to monitor when content becomes visible without requiring the child Components to expose refs:
268268
269269
```js {19,21,31-34}
270270
import { Fragment, useRef, useLayoutEffect } from 'react';
@@ -305,7 +305,7 @@ function MyComponent() {
305305
}
306306
```
307307
308-
This pattern is an alternative to effect-based visibility logging, which is an anti-pattern in most cases. Relying on effects alone does not guarantee that the rendered component is observable by the user.
308+
This pattern is an alternative to Effect-based visibility logging, which is an anti-pattern in most cases. Relying on Effects alone does not guarantee that the rendered Component is observable by the user.
309309
310310
---
311311

0 commit comments

Comments
 (0)