Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
65ebaff
Adding translation to Using Typescript
s0alken Aug 23, 2023
e3f4397
Update src/content/learn/typescript.md
NGHdeveloper Aug 25, 2023
d5a06ac
Update src/content/learn/typescript.md
NGHdeveloper Aug 25, 2023
2fee8db
Update src/content/learn/typescript.md
NGHdeveloper Aug 25, 2023
ca98347
Update src/content/learn/typescript.md
NGHdeveloper Aug 25, 2023
b4b41e6
Update src/content/learn/typescript.md
NGHdeveloper Aug 25, 2023
c70090d
Update src/content/learn/typescript.md
NGHdeveloper Aug 25, 2023
2e21784
Update src/content/learn/typescript.md
NGHdeveloper Aug 25, 2023
316eb13
Update src/content/learn/typescript.md
NGHdeveloper Aug 25, 2023
42865c6
Update src/content/learn/typescript.md
NGHdeveloper Aug 25, 2023
6a74c0a
Update src/content/learn/typescript.md
NGHdeveloper Aug 25, 2023
95c2f0e
Update src/content/learn/typescript.md
NGHdeveloper Aug 25, 2023
638aaa8
Update src/content/learn/typescript.md
NGHdeveloper Aug 25, 2023
904ee0c
Update src/content/learn/typescript.md
NGHdeveloper Aug 25, 2023
0c4fa0f
Update src/content/learn/typescript.md
NGHdeveloper Aug 25, 2023
2be6f5c
Update src/content/learn/typescript.md
NGHdeveloper Aug 25, 2023
1a1befe
Update src/content/learn/typescript.md
NGHdeveloper Aug 25, 2023
746100e
Update src/content/learn/typescript.md
NGHdeveloper Aug 25, 2023
c201a05
Update src/content/learn/typescript.md
NGHdeveloper Aug 25, 2023
ce88981
Update src/content/learn/typescript.md
NGHdeveloper Aug 25, 2023
e586088
Update src/content/learn/typescript.md
NGHdeveloper Aug 25, 2023
fa69af0
Update src/content/learn/typescript.md
NGHdeveloper Aug 25, 2023
623d334
Update src/content/learn/typescript.md
NGHdeveloper Aug 25, 2023
c73627b
Update src/content/learn/typescript.md
NGHdeveloper Aug 25, 2023
8abc9c2
Update src/content/learn/typescript.md
NGHdeveloper Aug 25, 2023
04378b5
Update src/content/learn/typescript.md
NGHdeveloper Aug 25, 2023
6a97e1f
Update src/content/learn/typescript.md
NGHdeveloper Aug 25, 2023
d853d79
Update src/content/learn/typescript.md
NGHdeveloper Aug 25, 2023
6c69e25
Update src/content/learn/typescript.md
NGHdeveloper Aug 25, 2023
96a47a1
Update src/content/learn/typescript.md
NGHdeveloper Aug 25, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update src/content/learn/typescript.md
  • Loading branch information
NGHdeveloper authored Aug 25, 2023
commit 8abc9c2891dcc0a12b29a74486494cb0ac608152
2 changes: 1 addition & 1 deletion src/content/learn/typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ El [hook `useState`](/reference/react/useState) reutilizará el valor pasado com
const [enabled, setEnabled] = useState(false);
```

Asignará el tipo `boolean` a `enabled`, y `setEnabled` será una function que aceptará un argumento `boolean` o una función que devolverá un valor `boolean`. Si deseas proporcionar explícitamente un tipo para el estado, puedes hacerlo proporcionando un argumento de tipo en la llamada a `useState`:
Asignará el tipo `boolean` a `enabled`, y `setEnabled` será una función que acepte un argumento `boolean`, o una función que devuelva un `boolean`. Si quieres proporcionar explícitamente un tipo para el estado, puedes hacerlo proporcionando un argumento de tipo a la llamada `useState`:

```ts
// Definiendo explícitamente el tipo como "boolean"
Expand Down