You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/learn/state-a-components-memory.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -186,7 +186,7 @@ com
186
186
const [index, setIndex] =useState(0);
187
187
```
188
188
189
-
`index`é uma variável de estado e `setIndex` é a função de definição.
189
+
`index`é uma variável de estado e `setIndex` é a função de definição.
190
190
191
191
> A sintaxe `[` e `]` aqui é chamada de [desestruturação de array](https://javascript.info/destructuring-assignment) e ela permite com que você leia valores de um array. O array retornado pelo `useState` sempre tem exatamente dois itens.
0 commit comments