Skip to content

Commit 335417a

Browse files
DavidKesselDavid
andauthored
fix typo on page (#4490)
Co-authored-by: David <[email protected]>
1 parent 61a6cd7 commit 335417a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

beta/src/pages/learn/sharing-state-between-components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Lifting state up often changes the nature of what you're storing as state.
166166

167167
<img alt="The parent component passes the state setting function to both child components." src="/images/docs/sketches/s_passing-functions-down.png" />
168168

169-
In this case, only one panel should be active at a time. This means that the `Accordion` common parent component needs to keep track of *which* panel is the active one. Instead of a `boolean` value, it could use an number as the index of the active `Panel` for the state variable:
169+
In this case, only one panel should be active at a time. This means that the `Accordion` common parent component needs to keep track of *which* panel is the active one. Instead of a `boolean` value, it could use a number as the index of the active `Panel` for the state variable:
170170

171171
```js
172172
const [activeIndex, setActiveIndex] = useState(0);

0 commit comments

Comments
 (0)