Skip to content

Commit 6240fed

Browse files
authored
docs: fix incomplete sentences in useref.md (#4731)
1 parent 11a5ea0 commit 6240fed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

beta/src/pages/apis/useref.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ function handleStopClick() {
6363
6464
By using a ref, you ensure that:
6565
66-
- You can **store information** between re-renders. (Unlike regular variables, which reset on every render.)
67-
- Changing it **does not trigger a re-render**. (Unlike state variables, which trigger a re-render.)
68-
- The **information is local** to each copy of your component. (Unlike the variables outside, which are shared.)
66+
- You can **store information** between re-renders (unlike regular variables, which reset on every render).
67+
- Changing it **does not trigger a re-render** (unlike state variables, which trigger a re-render).
68+
- The **information is local** to each copy of your component (unlike the variables outside, which are shared).
6969
7070
Changing a ref does not trigger a re-render, so refs are not appropriate for storing information that you want to display on the screen. Use state for that instead. Read more about [choosing between `useRef` and `useState`](/learn/referencing-values-with-refs#differences-between-refs-and-state).
7171

0 commit comments

Comments
 (0)