|
6 | 6 | * Each demo is isolated in its own file inside `examples/`. |
7 | 7 | */ |
8 | 8 |
|
9 | | -// import BasicLog from "./examples/BasicLog"; |
| 9 | +import BasicLog from "./examples/01_BasicLog"; |
10 | 10 | // import EffectCleanup from "./examples/EffectCleanup"; |
11 | 11 | // import DependencyArray from "./examples/DependencyArray"; |
12 | 12 | // import WindowResizeListener from "./examples/WindowResizeListener"; |
@@ -39,43 +39,43 @@ export default function UseEffectShowcase() { |
39 | 39 | <section> |
40 | 40 | <h1>useEffect β Curated Examples</h1> |
41 | 41 |
|
42 | | - {/* <Demo title="1) BasicLog β log after render"> |
| 42 | + <Demo title="1) BasicLog β log after render"> |
43 | 43 | <BasicLog /> |
44 | 44 | </Demo> |
45 | 45 |
|
46 | | - <Demo title="2) EffectCleanup β cleanup on unmount"> |
| 46 | + {/* <Demo title="2) EffectCleanup β cleanup on unmount"> |
47 | 47 | <EffectCleanup /> |
48 | | - </Demo> |
| 48 | + </Demo> */} |
49 | 49 |
|
50 | | - <Demo title="3) DependencyArray β [] vs deps vs no deps"> |
| 50 | + {/* <Demo title="3) DependencyArray β [] vs deps vs no deps"> |
51 | 51 | <DependencyArray /> |
52 | | - </Demo> |
| 52 | + </Demo> */} |
53 | 53 |
|
54 | | - <Demo title="4) WindowResizeListener β global event subscription"> |
| 54 | + {/* <Demo title="4) WindowResizeListener β global event subscription"> |
55 | 55 | <WindowResizeListener /> |
56 | | - </Demo> |
| 56 | + </Demo> */} |
57 | 57 |
|
58 | | - <Demo title="5) FetchData β async request with cleanup"> |
| 58 | + {/* <Demo title="5) FetchData β async request with cleanup"> |
59 | 59 | <FetchData /> |
60 | | - </Demo> |
61 | | -
|
| 60 | + </Demo> */} |
| 61 | +{/* |
62 | 62 | <Demo title="6) MultipleEffects β separate concerns"> |
63 | 63 | <MultipleEffects /> |
64 | | - </Demo> |
| 64 | + </Demo> */} |
65 | 65 |
|
66 | | - <Demo title="7) EffectVsLayoutEffect β timing differences"> |
| 66 | + {/* <Demo title="7) EffectVsLayoutEffect β timing differences"> |
67 | 67 | <EffectVsLayoutEffect /> |
68 | | - </Demo> |
| 68 | + </Demo> */} |
69 | 69 |
|
70 | | - <Demo title="8) DebouncedInput β debounce with setTimeout"> |
| 70 | + {/* <Demo title="8) DebouncedInput β debounce with setTimeout"> |
71 | 71 | <DebouncedInput /> |
72 | | - </Demo> |
| 72 | + </Demo> */} |
73 | 73 |
|
74 | | - <Demo title="9) IntervalCounter β timer with cleanup"> |
| 74 | + {/* <Demo title="9) IntervalCounter β timer with cleanup"> |
75 | 75 | <IntervalCounter /> |
76 | | - </Demo> |
| 76 | + </Demo> */} |
77 | 77 |
|
78 | | - <Demo title="10) RaceConditionFix β async abort pattern"> |
| 78 | + {/* <Demo title="10) RaceConditionFix β async abort pattern"> |
79 | 79 | <RaceConditionFix /> |
80 | 80 | </Demo> */} |
81 | 81 | </section> |
|
0 commit comments