Skip to content

Commit 5f78c5c

Browse files
committed
chore: Update description
1 parent b7b6675 commit 5f78c5c

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

client/src/components/redux/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function ReduxComponent ({
1313
Redux Toolkit
1414
</h2>
1515

16-
<p>Testing rendering data from a redux store inside a deeply-nested component.</p>
16+
<p> Testing page re-renders and data rendering from a redux store inside a deeply-nested component.</p>
1717

1818
<button onClick={addTodo}
1919
style={{ marginTop: '24px' }}>

client/src/components/usesyncexternalstore/index.js

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,20 @@ function UseSyncExternalStoreComponent ({
1010
return (
1111
<Page>
1212
<h2>
13-
UseSyncExternalStoreComponent
13+
useSyncExternalStore
1414
</h2>
1515

16+
<p>
17+
Testing page re-renders and data rendering from a global variable set by useSyncExternalStore inside a deeply-nested component.
18+
</p>
19+
<br /><br />
20+
21+
<button onClick={() => addTodo()}>
22+
Add Todo
23+
</button>
24+
25+
<br /><br />
26+
1627
<Card>
1728
<Card>
1829
<Card>
@@ -29,11 +40,7 @@ function UseSyncExternalStoreComponent ({
2940
</Card>
3041
</Card>
3142

32-
<button onClick={() => addTodo()}>
33-
Add Todo
34-
</button>
35-
36-
<br /><br />
43+
<br />
3744

3845
<Card>
3946
Hello

0 commit comments

Comments
 (0)