Skip to content

Commit e84e8cb

Browse files
authored
Merge pull request #1 from bozoputer/bozoputer-patch-1
Update typescript.md
2 parents 9c53b48 + 18915b1 commit e84e8cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/learn/typescript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ The [`useState` Hook](/reference/react/useState) will re-use the value passed in
137137
const [enabled, setEnabled] = useState(false);
138138
```
139139

140-
Will assign the type of `boolean` to `enabled`, and `setEnabled` will be a function accepting either a `boolean` argument, or a function that returns a `boolean`. If you want to explicitly provide a type for the state, you can do so by providing a type argument to the `useState` call:
140+
will assign the type of `boolean` to `enabled`, and `setEnabled` will be a function accepting either a `boolean` argument, or a function that returns a `boolean`. If you want to explicitly provide a type for the state, you can do so by providing a type argument to the `useState` call:
141141

142142
```ts
143143
// Explicitly set the type to "boolean"

0 commit comments

Comments
 (0)