From 696449f5f0c40dc01819dff5b82bbbaad6e9c37d Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 18 Jun 2026 09:31:27 +0000 Subject: [PATCH] docs: use 'parameter' instead of 'argument' in tic-tac-toe tutorial When introducing `function handleClick(i)`, `i` is a parameter in the function definition, not an argument. Fixes reactjs/react.dev#8375. --- src/content/learn/tutorial-tic-tac-toe.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/learn/tutorial-tic-tac-toe.md b/src/content/learn/tutorial-tic-tac-toe.md index d09d484844d..623ecdd4e07 100644 --- a/src/content/learn/tutorial-tic-tac-toe.md +++ b/src/content/learn/tutorial-tic-tac-toe.md @@ -1137,7 +1137,7 @@ JavaScript supports [closures](https://developer.mozilla.org/en-US/docs/Web/Java -Now you can add X's to the board... but only to the upper left square. Your `handleClick` function is hardcoded to update the index for the upper left square (`0`). Let's update `handleClick` to be able to update any square. Add an argument `i` to the `handleClick` function that takes the index of the square to update: +Now you can add X's to the board... but only to the upper left square. Your `handleClick` function is hardcoded to update the index for the upper left square (`0`). Let's update `handleClick` to be able to update any square. Add a parameter `i` to the `handleClick` function that takes the index of the square to update: ```js {4,6} export default function Board() {