Skip to content

Commit 6d0aca1

Browse files
Fix punctuation. (#6815)
* Update typescript.md Fix punctuation. * Update src/content/learn/typescript.md --------- Co-authored-by: Ricky <[email protected]>
1 parent 86d306f commit 6d0aca1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/learn/typescript.md

+1-1
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+
This 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)