Skip to content

Commit a9d7aa6

Browse files
Prakhar KamalPrakhar Kamal
Prakhar Kamal
authored and
Prakhar Kamal
committed
Remove unused variable nextId from updating arrays in state lesson
1 parent af54fc8 commit a9d7aa6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/content/learn/updating-arrays-in-state.md

-1
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,6 @@ For example:
409409
```js
410410
import { useState } from 'react';
411411

412-
let nextId = 3;
413412
const initialList = [
414413
{ id: 0, title: 'Big Bellies' },
415414
{ id: 1, title: 'Lunar Landscape' },

0 commit comments

Comments
 (0)