Skip to content

Commit 7e59348

Browse files
authored
Replace defunct placeKitten calls with loremFlicker and placeCat calls (#7189)
1 parent fe37c42 commit 7e59348

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

src/content/learn/manipulating-the-dom-with-refs.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -124,35 +124,35 @@ export default function CatFriends() {
124124
<>
125125
<nav>
126126
<button onClick={handleScrollToFirstCat}>
127-
Tom
127+
Neo
128128
</button>
129129
<button onClick={handleScrollToSecondCat}>
130-
Maru
130+
Millie
131131
</button>
132132
<button onClick={handleScrollToThirdCat}>
133-
Jellylorum
133+
Bella
134134
</button>
135135
</nav>
136136
<div>
137137
<ul>
138138
<li>
139139
<img
140-
src="https://placekitten.com/g/200/200"
141-
alt="Tom"
140+
src="https://placecats.com/neo/300/200"
141+
alt="Neo"
142142
ref={firstCatRef}
143143
/>
144144
</li>
145145
<li>
146146
<img
147-
src="https://placekitten.com/g/300/200"
148-
alt="Maru"
147+
src="https://placecats.com/millie/200/200"
148+
alt="Millie"
149149
ref={secondCatRef}
150150
/>
151151
</li>
152152
<li>
153153
<img
154-
src="https://placekitten.com/g/250/200"
155-
alt="Jellylorum"
154+
src="https://placecats.com/bella/199/200"
155+
alt="Bella"
156156
ref={thirdCatRef}
157157
/>
158158
</li>
@@ -245,9 +245,9 @@ export default function CatFriends() {
245245
return (
246246
<>
247247
<nav>
248-
<button onClick={() => scrollToCat(catList[0])}>Tom</button>
249-
<button onClick={() => scrollToCat(catList[5])}>Maru</button>
250-
<button onClick={() => scrollToCat(catList[9])}>Jellylorum</button>
248+
<button onClick={() => scrollToCat(catList[0])}>Neo</button>
249+
<button onClick={() => scrollToCat(catList[5])}>Millie</button>
250+
<button onClick={() => scrollToCat(catList[9])}>Bella</button>
251251
</nav>
252252
<div>
253253
<ul>
@@ -948,7 +948,7 @@ const catList = [];
948948
for (let i = 0; i < 10; i++) {
949949
catList.push({
950950
id: i,
951-
imageUrl: 'https://placekitten.com/250/200?image=' + i
951+
imageUrl: 'https://loremflickr.com/250/200/cat?lock=' + i
952952
});
953953
}
954954

@@ -1065,7 +1065,7 @@ const catList = [];
10651065
for (let i = 0; i < 10; i++) {
10661066
catList.push({
10671067
id: i,
1068-
imageUrl: 'https://placekitten.com/250/200?image=' + i
1068+
imageUrl: 'https://loremflickr.com/250/200/cat?lock=' + i
10691069
});
10701070
}
10711071

src/content/reference/react/useRef.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -327,33 +327,33 @@ export default function CatFriends() {
327327
<>
328328
<nav>
329329
<button onClick={() => scrollToIndex(0)}>
330-
Tom
330+
Neo
331331
</button>
332332
<button onClick={() => scrollToIndex(1)}>
333-
Maru
333+
Millie
334334
</button>
335335
<button onClick={() => scrollToIndex(2)}>
336-
Jellylorum
336+
Bella
337337
</button>
338338
</nav>
339339
<div>
340340
<ul ref={listRef}>
341341
<li>
342342
<img
343-
src="https://placekitten.com/g/200/200"
344-
alt="Tom"
343+
src="https://placecats.com/neo/300/200"
344+
alt="Neo"
345345
/>
346346
</li>
347347
<li>
348348
<img
349-
src="https://placekitten.com/g/300/200"
350-
alt="Maru"
349+
src="https://placecats.com/millie/200/200"
350+
alt="Millie"
351351
/>
352352
</li>
353353
<li>
354354
<img
355-
src="https://placekitten.com/g/250/200"
356-
alt="Jellylorum"
355+
src="https://placecats.com/bella/199/200"
356+
alt="Bella"
357357
/>
358358
</li>
359359
</ul>

0 commit comments

Comments
 (0)