Skip to content

Commit 5d2f710

Browse files
authored
Remove unused variables (#6574)
1 parent 30f23d7 commit 5d2f710

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/content/learn/adding-interactivity.md

-2
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,6 @@ Arrays are another type of mutable JavaScript objects you can store in state and
646646
```js
647647
import { useState } from 'react';
648648

649-
let nextId = 3;
650649
const initialList = [
651650
{ id: 0, title: 'Big Bellies', seen: false },
652651
{ id: 1, title: 'Lunar Landscape', seen: false },
@@ -714,7 +713,6 @@ If copying arrays in code gets tedious, you can use a library like [Immer](https
714713
import { useState } from 'react';
715714
import { useImmer } from 'use-immer';
716715

717-
let nextId = 3;
718716
const initialList = [
719717
{ id: 0, title: 'Big Bellies', seen: false },
720718
{ id: 1, title: 'Lunar Landscape', seen: false },

0 commit comments

Comments
 (0)