Skip to content

Commit b8eb2b1

Browse files
committed
wip
1 parent 7a8454f commit b8eb2b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/reference/react/Activity.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ If the boundary becomes <CodeStep step={3}>visible</CodeStep> again, React will
7373

7474
The following example has a sidebar with an expandable section – press "Overview" to reveal the three subitems below it. The main app area also has a button that hides and shows the sidebar.
7575

76-
Try expanding the Overview section, hiding the sidebar, and then showing the sidebar again:
76+
Try expanding the Overview section, then toggling the sidebar closed then open:
7777

7878
<Sandpack>
7979

@@ -179,7 +179,7 @@ h1 {
179179

180180
</Sandpack>
181181

182-
The Overview section starts out collapsed again! Because we unmount the sidebar when `isShowingSidebar` flips to `false`, all its internal state is lost.
182+
The Overview section resets, and starts out collapsed. Because we unmount the sidebar when `isShowingSidebar` flips to `false`, all its internal state is lost.
183183

184184
This is a perfect use case for Activity. We can preserve the internal state of our sidebar, even when visually hiding it.
185185

0 commit comments

Comments
 (0)