File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff 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' } } >
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments