mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
docs: fix typo in tutorial-tic-tac-toe.md (#2836)
This commit is contained in:
parent
7fcd59b10d
commit
9782058029
@ -352,7 +352,7 @@ export default function Board() {
|
||||
```
|
||||
|
||||
`Array(9).fill(null)` creates an array with nine elements and sets each of them to `null`. The
|
||||
`useSquaresStore` declares a `squares` state that's initially set to that array. Each entry in the
|
||||
`useGameStore` declares a `squares` state that's initially set to that array. Each entry in the
|
||||
array corresponds to the value of a square. When you fill the board in later, the squares array
|
||||
will look like this:
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user