react.dev icon indicating copy to clipboard operation
react.dev copied to clipboard

Remove the extra "nextId" variable from the "Updating arrays in state" page

Open barbossa opened this issue 2 years ago • 1 comments

Hello, At the page https://beta.reactjs.org/learn/updating-arrays-in-state I've found that the "nextId" variable is not uses in the four codesandbox examples.

The first place in the "Making other changes to an array" section

screenshot_2023_02_27_11:29:23

The second and third place in the "Updating objects inside arrays" section

screenshot_2023_02_27_11:31:55

screenshot_2023_02_27_11:33:47

The forth place in the "Write concise update logic with Immer" section

screenshot_2023_02_27_11:35:20

barbossa avatar Feb 27 '23 08:02 barbossa

Size Changes

📦 Next.js Bundle Analysis

This analysis was generated by the next.js bundle analysis action 🤖

This PR introduced no changes to the javascript bundle 🙌

github-actions[bot] avatar Feb 27 '23 08:02 github-actions[bot]