Skip to content

Commit 983bda9

Browse files
authored
Removed unused nextId variable (#6470)
1 parent 6f8d4e6 commit 983bda9

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)