Skip to content

Commit 9e144cd

Browse files
authored
Fix typo in preserving-and-resetting-state.md (#6194)
1 parent 7141306 commit 9e144cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/learn/preserving-and-resetting-state.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ Clicking "next" again
935935

936936
</DiagramGroup>
937937

938-
Each `Counter`'s state gets destroyed each time its removed from the DOM. This is why they reset every time you click the button.
938+
Each `Counter`'s state gets destroyed each time it's removed from the DOM. This is why they reset every time you click the button.
939939

940940
This solution is convenient when you only have a few independent components rendered in the same place. In this example, you only have two, so it's not a hassle to render both separately in the JSX.
941941

0 commit comments

Comments
 (0)