Skip to content

docs: translate tutorial: tic tac toe #437

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

mattia-sanfilippo
Copy link
Collaborator

Translate "Tutorial: Tic Tac Toe"

Part of #418

@github-actions
Copy link

github-actions bot commented May 2, 2023

Size changes

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

Copy link
Contributor

@Ago95Dev Ago95Dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ciao Mattia! 😄

Ho provato a scrivere una review, magari è di aiuto 🙂

@@ -2509,7 +2509,7 @@ function handlePlay(nextSquares) {
}
```

Finally, you will modify the `Game` component to render the currently selected move, instead of always rendering the final move:
Infine, modificherai il componente `Gioco` per eseguire il rendering della mossa attualmente selezionata, invece di eseguire sempre il rendering della mossa finale:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Infine, modificherai il componente `Gioco` per eseguire il rendering della mossa attualmente selezionata, invece di eseguire sempre il rendering della mossa finale:
Infine, modificherai il componente `Game` per eseguire il rendering della mossa attualmente selezionata, invece di eseguire sempre la renderizzazione della mossa finale:

@@ -1155,27 +1155,27 @@ export default function Board() {
}
```

Next, you will need to pass that `i` to `handleClick`. You could try to set the `onSquareClick` prop of square to be `handleClick(0)` directly in the JSX like this, but it won't work:
Successivamente, dovrai passare quella `i` a `handleClick`. Potresti provare a impostare la prop `onSquareClick` di square in modo che sia `handleClick(0)` direttamente nel JSX in questo modo, ma non funzionerà:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Successivamente, dovrai passare quella `i` a `handleClick`. Potresti provare a impostare la prop `onSquareClick` di square in modo che sia `handleClick(0)` direttamente nel JSX in questo modo, ma non funzionerà:
Successivamente, dovrai passare quella `i` a `handleClick`. Potresti provare a impostare la prop `onSquareClick` di Square in modo che sia `handleClick(0)` direttamente nel JSX in questo modo, ma non funzionerà:

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ciao @Ago95Dev, su questo non sono sicuro, terrei lo stesso casing della versione originale. Cosa ne pensi? :)

Copy link
Contributor

@Ago95Dev Ago95Dev May 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non ho capito il minuscolo nell'originale, riferito a Square nell'esempio sotto 😅

In ogni caso, sono d'accordo, meglio lasciare lo stesso casing per coerenza 😃

@mattia-sanfilippo
Copy link
Collaborator Author

Ciao Mattia! 😄

Ho provato a scrivere una review, magari è di aiuto 🙂

Ciao Agostino 😄 Grazie mille per le suggestions!
Le ho applicate, eccetto una per via di un cambio di casing. Grazie ancora :)

Copy link
Collaborator

@deblasis deblasis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@deblasis deblasis merged commit db218bf into reactjs:main May 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants