Skip to content

Commit b73c130

Browse files
authored
Fix typo in context.md about runtime type checks
Corrected a typo in the context.md documentation regarding runtime type checks.
1 parent 54b6c9c commit b73c130

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/basic/getting-started/context.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ const useCurrentUser = () => {
107107
};
108108
```
109109

110-
Using a runtime type check in this will has the benefit of printing a clear error message in the console when a provider is not wrapping the components properly. Now it's possible to access `currentUser.username` without checking for `null`:
110+
Using a runtime type check in this will have the benefit of printing a clear error message in the console when a provider is not wrapping the components properly. Now it's possible to access `currentUser.username` without checking for `null`:
111111

112112
```tsx
113113
import { useContext } from "react";

0 commit comments

Comments
 (0)