Skip to content

Commit

Permalink
Remove unused variables (#6574)
Browse files Browse the repository at this point in the history
  • Loading branch information
smith558 authored Jan 28, 2024
1 parent 30f23d7 commit 5d2f710
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/content/learn/adding-interactivity.md
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,6 @@ Arrays are another type of mutable JavaScript objects you can store in state and
```js
import { useState } from 'react';

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

let nextId = 3;
const initialList = [
{ id: 0, title: 'Big Bellies', seen: false },
{ id: 1, title: 'Lunar Landscape', seen: false },
Expand Down

0 comments on commit 5d2f710

Please sign in to comment.