From 5d2f7105bd6374e465b8bdce8efceaeb8f01c937 Mon Sep 17 00:00:00 2001 From: "Stanislav (Stanley) Modrak" <44023416+smith558@users.noreply.github.com> Date: Sun, 28 Jan 2024 03:13:52 +0000 Subject: [PATCH] Remove unused variables (#6574) --- src/content/learn/adding-interactivity.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/content/learn/adding-interactivity.md b/src/content/learn/adding-interactivity.md index d1359d05a..0d4a3b23f 100644 --- a/src/content/learn/adding-interactivity.md +++ b/src/content/learn/adding-interactivity.md @@ -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 }, @@ -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 },