Skip to content

Commit c885d36

Browse files
authored
Merge pull request #4207 from elfaidi-ghassen/patch-1
Fix grammar in useRef explanation
2 parents 67e6c13 + a379ed2 commit c885d36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/5/en/part5b.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ const App = () => {
383383
}
384384
```
385385

386-
The [useRef](https://react.dev/reference/react/useRef) hook is used to create a <i>noteFormRef</i> reference, that is assigned to the <i>Togglable</i> component containing the creation note form. The <i>noteFormRef</i> variable acts as a reference to the component. This hook ensures the same reference (ref) that is kept throughout re-renders of the component.
386+
The [useRef](https://react.dev/reference/react/useRef) hook is used to create a <i>noteFormRef</i> reference, that is assigned to the <i>Togglable</i> component containing the creation note form. The <i>noteFormRef</i> variable acts as a reference to the component. This hook ensures that the same reference (ref) is kept throughout re-renders of the component.
387387

388388
We also make the following changes to the <i>Togglable</i> component:
389389

0 commit comments

Comments
 (0)