We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bfd418 commit 8f81abdCopy full SHA for 8f81abd
src/content/reference/react/StrictMode.md
@@ -1170,7 +1170,7 @@ export default function CatFriends() {
1170
console.log('❌ Too many cats in the list!');
1171
}
1172
return () => {
1173
- list.splice(list.indexOf(item));
+ list.splice(list.indexOf(item), 1);
1174
console.log(`❌ Removing cat from the map. Total cats: ${itemsRef.current.length}`);
1175
1176
}}
0 commit comments